code: def emit(self, event, *args, **kwargs):
          
          for func in self._registered_events[event].values():
              func(*args, **kwargs)
docs: Send out an event and call it's associated functions
  
          :param event: Name of the event to trigger