docs: def on(self, evt, func):
          '''Set a callback handler for a pubsub event'''
          if evt not in self._callbacks:
              raise NotImplementedError('callback "%s"' % evt)
          else:
              self._callbacks[evt] = func