I don't know if this will ever work. All I know is...

I need to find a Blender 2.3 to Blender 2.5/2.6 Python API porting guide
to remove this old code.