code: def fire(self, *args, **kwargs):
  
          
  
          for func in self._getfunctionlist():
              if type(func) == EventHandler:
                  func.fire(*args, **kwargs)
              else:
                  func(self.obj, *args, **kwargs)
docs: Fire event and call all handler functions
  
          You can call EventHandler object itself like e(*args, **kwargs) instead of
          e.fire(*args, **kwargs).