def decode_list(data):
 rv = []
 for item in data:
  if (isinstance(item, six.text_type) and six.PY2):
   item = item.encode('utf-8')
  elif isinstance(item, list):
   item = decode_list(item)
  elif isinstance(item, dict):
   item = decode_dict(item)
  rv.append(item)
 return rv

def decode_list ( data ) : rv = [ ] for item in data : if ( isinstance ( item , six . text_type ) and six . PY2 ) : item = item . encode ( 'utf-8' ) elif isinstance ( item , list ) : item = decode_list ( item ) elif isinstance ( item , dict ) : item = decode_dict ( item ) rv . append ( item ) return rv
json decodes as unicode .