code: def add_handler(self, handler):
          
          if not callable(handler):
              raise TypeError("'%s' is not callable." % handler)
  
          self.append(handler)
docs: Adds a handler. Also checks if it is callable.
          To bypass checks, use Event.append() instead.