code: def dict_to_unicode(raw_dict):
      
      decoded = {}
      for key, value in raw_dict.items():
          decoded[to_unicode(key)] = map(
              to_unicode, value)
      return decoded
docs: Ensure all keys and values in a dict are unicode.
  
      The passed dict is assumed to have lists for all values.