code: def add(self, callback, name):
          
          if callback == None:
              del self.callbacks[name]
          else:
              self.callbacks[name] = callback
docs: Adds a callback to our set of callbacks,
          or removes the callback with name if callback
          is None.