def fix_keys(data):
 new_data = []
 if isinstance(data, list):
  for n in xrange(len(data)):
   if isinstance(data[n], dict):
    new = {}
    for key in data[n]:
     new[unicoder(key)] = data[n][key]
   else:
    new = data[n]
   new_data.append(new)
 return new_data

def fix_keys ( data ) : new_data = [ ] if isinstance ( data , list ) : for n in xrange ( len ( data ) ) : if isinstance ( data [ n ] , dict ) : new = { } for key in data [ n ] : new [ unicoder ( key ) ] = data [ n ] [ key ] else : new = data [ n ] new_data . append ( new ) return new_data
convert keys of each dictionary in tuple data to unicode .