def remove_handler(key, handler):
 if (type(key) is Predicate):
  key = key.name
 getattr(Q, key).remove_handler(handler)

def remove_handler ( key , handler ) : if ( type ( key ) is Predicate ) : key = key . name getattr ( Q , key ) . remove_handler ( handler )
removes a handler from the ask system .