def register_callbacks(self):
self.conn.register_callbacks((<EOL>(re.compile(pattern), callback)for pattern, callback in self.command_patterns()<EOL>))<EOL>
\
        Hook for registering callbacks with connection -- handled by __init__()