def flexible_boolean(boolean):
 if (boolean in ('1', 'true', 'True')):
  return True
 else:
  return False

def flexible_boolean ( boolean ) : if ( boolean in ( '1' , 'true' , 'True' ) ) : return True else : return False
returns true for any of "1" .