code: def register(cls, name, type_):
          
  
          if not issubclass(type_, Entry):
              raise exceptions.InvalidEntryType("%s is not a subclass of Entry" % str(type_))
          cls._registry[name.lower()] = type_
docs: Register a new type for an entry-type. The 2nd argument has to be a
          subclass of structures.Entry.