<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_handler(self, handler):
 """ Remove a handler from the list. handler - The handler (as returned by add_handler) to remove. Returns True on success, False otherwise. """

        try:
            self._events[handler.type].remove(handler)
            return True
        except ValueError:
            return False