def register_handler(self, name, handler, esc_strings):
self._handlers[name] = handler<EOL>for esc_str in esc_strings:<EOL><INDENT>self._esc_handlers[esc_str] = handler<EOL><DEDENT>
Register a handler instance by name with esc_strings.