def represent(obj):
 try:
  return pickle.dumps(obj, pickle.HIGHEST_PROTOCOL)
 except:
  return repr(obj)

def represent ( obj ) : try : return pickle . dumps ( obj , pickle . HIGHEST_PROTOCOL ) except : return repr ( obj )
returns a string representing the given objects value .