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