'Connect an event handler to an event. Append it to handlers list.'

def connect(self, event_name, handler):

    try:
        self.handlers[event_name].append(handler)
    except KeyError:
        self.handlers[event_name] = [handler]
