Change from global to local I am working in global, however when I enter edit mode I would like to change to LOCAL. The python code is missing something. 


  bpy.context.scene.type = 'LOCAL'
On the 3D header, there is a button where you can change it from Global to Local.


Hope that answers your question :)