code: def convert_from_unicode(data):
      
      # if isinstance(data, basestring):
  
      if isinstance(data, str):
          return str(data)
      elif isinstance(data, collectionsAbc.Mapping):
          return dict(map(convert_from_unicode, data.items()))
      elif isinstance(data, collectionsAbc.Iterable):
          return type(data)(map(convert_from_unicode, data))
      else:
          return data
docs: converts unicode data to a string
      :param data: the data to convert
      :return: