def runHook(hook, *args):
 hook = _hooks.get(hook, None)
 if hook:
  for func in hook:
   func(*args)

def runHook ( hook , * args ) : hook = _hooks . get ( hook , None ) if hook : for func in hook : func ( * args )
run all functions on hook .