protect python API call with GIL. add Incref in FromManagedObject.

maybe over-protective. but avoided error for me.