def pretty_bool(value):
 bool_dict = [True, 'True', 'true', 'T', 't', '1']
 return (value in bool_dict)

def pretty_bool ( value ) : bool_dict = [ True , 'True' , 'true' , 'T' , 't' , '1' ] return ( value in bool_dict )
check value for possible true value .