def bytes2NativeString(x, encoding='utf-8'):
 if (isinstance(x, bytes) and (str != bytes)):
  return x.decode(encoding)
 return x

def bytes2NativeString ( x , encoding = 'utf-8' ) : if ( isinstance ( x , bytes ) and ( str != bytes ) ) : return x . decode ( encoding ) return x
convert c{bytes} to a native c{str} .