Cursor location accessing methods
A .blend file can contain many scenes. Each scene has a .cursor_location attribute:

&gt;&gt;&gt; {scene.name:scene.cursor_location for scene in bpy.data.scenes}
{'Scene': Vector((0.9819498062133789, -5.541140079498291, -6.299274444580078))}


If you know the name of the scene, (e.g. 'Scene'), you could use

bpy.data.scenes['Scene'].cursor_location