def pylm_component(name):
    """Decorator for registering a class to lightmetrica"""
    def pylm_component_(object):
        # Get base class
        base = object.__bases__[0]
        base.reg(object, name)
        return object
    return pylm_component_