<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register_handler(self, handler):
 """ Register a new namespace handler. """

        self._handlers[handler.namespace] = handler

        handler.registered(self)