code: def notify(self, message):
          
          for regex, handler in self.dispatch.items():
              match = re.search(regex, message)
              if match:
                  handler = getattr(self, handler)
                  return handler(match)
docs: Callback function which checks lines of output, tries to match
          against regex defined in subclass's "dispatch" dict, and passes through
          to a handler on match.