def utf8tounicode(arg):
 if (PY2 and isinstance(arg, str)):
  return arg.decode('utf-8')
 return arg

def utf8tounicode ( arg ) : if ( PY2 and isinstance ( arg , str ) ) : return arg . decode ( 'utf-8' ) return arg
only in python 2 .