def __init_subclass__(cls, **kwargs):
    """Automatically register the class"""
    super().__init_subclass__(**kwargs)
    if not hasattr(cls, '_registry'):
        cls._registry = {}
    name = cls.__module__.split('.')[-1]
    cls._registry[name] = cls
