def remHook(hook, func):
 hook = _hooks.get(hook, [])
 if (func in hook):
  hook.remove(func)

def remHook ( hook , func ) : hook = _hooks . get ( hook , [ ] ) if ( func in hook ) : hook . remove ( func )
remove a function if is on hook .