pass the obdata as an argument rather then assigning later so as not to allow an invalid state.
only one script at the moment: [#20848] Blender Gears for 2.5 (for ideasman42) from Michel Anders (varkenvarken)