code: def fix(self, item):
          
          if not self.is_python_2:
              return item
          if isinstance(item, str):
              return item.decode("utf-8")
          if isinstance(item, unicode):  # noqa <-- python3 has no unicode
              return item
          if isinstance(item, Mapping):
              return dict(map(self.fix, item.items()))
          elif isinstance(item, Iterable):
              return type(item)(map(self.fix, item))
  
          return item
docs: Make sure all strings are unicode for python 2/3 compatability