def notify(self, message):
for regex, handler in self.dispatch.items():<EOL><INDENT>match = re.search(regex, message)<EOL>if match:<EOL><INDENT>handler = getattr(self, handler)<EOL>return handler(match)<EOL><DEDENT><DEDENT>
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.