      elif isinstance(data, dict):
          ret = dict([
              (key, _force_text_recursive(value))
              for key, value in data.items()
          ])
          if isinstance(data, ReturnDict):
              return ReturnDict(ret, serializer=data.serializer)
          return data
      return force_text(data)
  
 
</s> remove         ret = dict([
            (key, _force_text_recursive(value))
 </s> add         ret = {
            key: _force_text_recursive(value) </s> remove         return dict([
            (six.text_type(key), self.child.run_validation(value))
 </s> add         return {
            six.text_type(key): self.child.run_validation(value) </s> remove         return dict([
            (key, value if isinstance(value, list) else [value])
 </s> add         return {
            key: value if isinstance(value, list) else [value] </s> remove         ])
 </s> add         } </s> remove         return set([
 </s> add         return {
        }
      elif isinstance(data, dict):
          ret = dict([
              (key, _force_text_recursive(value))
              for key, value in data.items()
        }
          if isinstance(data, ReturnDict):
              return ReturnDict(ret, serializer=data.serializer)
          return data
      return force_text(data)
  
keep keep keep keep replace keep keep keep keep keep
 Replaced all dict and set conversions from lists to dict and set literals. 
rest_framework/exceptions.py