def nice(s):
 if (type(s) is StringType):
  return repr(s)
 else:
  return str(s)

def nice ( s ) : if ( type ( s ) is StringType ) : return repr ( s ) else : return str ( s )
nice representation of an object .