def register_event(event_type):
def register(cls):<EOL><INDENT>EVENT_TYPES[event_type] = cls<EOL>return cls<EOL><DEDENT>return register<EOL>
Register the event class so that they can be accessed from EVENT_TYPES

:param event_type: Event type