def string_decode(string):
 if (PY_MAJOR_VERSION > 2):
  return bytes(string, 'utf-8').decode('unicode_escape')
 else:
  return string.decode('string_escape')

def string_decode ( string ) : if ( PY_MAJOR_VERSION > 2 ) : return bytes ( string , 'utf-8' ) . decode ( 'unicode_escape' ) else : return string . decode ( 'string_escape' )
for cross compatibility between python 2 and python 3 strings .