I am trying to set a cursor location and pivot point with
bpy.types.SpaceView3D.pivot_point='CURSOR' bpy.types.SpaceView3D.cursor_location = (0.0, 0.0, 0.0)
and I see I am not doing it right. How to do it correctly?
See Adhi's answer here as to why this won't work the way you are doing it.
What you want to use is
For the cursor location, there is a shorter alternative. All 3D View's cursor location is linked to the scene's, so it can also be accessed from
Here is a snippet of the code (forgive my bad python) which I ended up using after reading the answer