code: def raise_event(self, event_name, **kwargs):
          
          handlers = list(self._event_handlers[event_name])
          logger.debug('Event: %s %s', event_name, handlers)
          for func in handlers:
              func(self, **kwargs)
docs: Raise an event. Calls each handler in turn with kwargs
  
          :param event_name: The name of the event to raise
          :type event_name: str
          :param kwargs: Kwargs to be passed to all event handlers