From BlenderWiki
I needed to make three changes to this script to get it to work with Blender 2.5.7.
1. bl_addon_info -> bl_info
2. "api": 33735 -> "api": 35853
3. add this line after "def register():" (including the 4 leading spaces)
bpy.utils.register_module(__name__)
4. add this line after "def unregister():" (including the 4 leading spaces)
bpy.utils.unregister_module(__name__)
--Philius 17:34, 23 April 2011 (CEST)