Some scripts use the 3D cursor (for adding new objects or for a point of reference).
A common way to do this is using bpy.context.scene.cursor_location.
However in Local View each view has its own cursor, making tools behave strangely when local-view is enabled.
So the question is:
What's a good way to access the 3D cursor which will use the cursor as seen by the user?