def fuzzy_bool(x):
 if (x is None):
  return None
 if (x in (True, False)):
  return bool(x)

def fuzzy_bool ( x ) : if ( x is None ) : return None if ( x in ( True , False ) ) : return bool ( x )
return true .