def add_event_callback(event, callable, *args, **kwargs):
    'Register a callback that will be called upon the given event.'
    _event_callbacks[event].append(partial(callable, *args, **kwargs))
Register a callback that will be called upon the given event.
def add_event_callback(event, callable, *args, **kwargs):
    
    _event_callbacks[event].append(partial(callable, *args, **kwargs))