def is_unicode(obj):
 if PY2:
  return isinstance(obj, unicode)
 else:
  return isinstance(obj, str)

def is_unicode ( obj ) : if PY2 : return isinstance ( obj , unicode ) else : return isinstance ( obj , str )
return true if obj is unicode .