def register(): from bpy.utils import register_class for mod in _modules_loaded: for cls in mod.classes: register_class(cls)