              list_kwargs['allow_empty'] = allow_empty
          list_kwargs.update(dict([
              (key, value) for key, value in kwargs.items()
              if key in LIST_SERIALIZER_KWARGS
          ]))
          meta = getattr(cls, 'Meta', None)
          list_serializer_class = getattr(meta, 'list_serializer_class', ListSerializer)
          return list_serializer_class(*args, **list_kwargs)
  
      def to_internal_value(self, data):
 
</s> remove         list_kwargs.update(dict([
            (key, value) for key, value in kwargs.items()
 </s> add         list_kwargs.update({
            key: value for key, value in kwargs.items() </s> remove         ret = dict([
            (key, _force_text_recursive(value))
 </s> add         ret = {
            key: _force_text_recursive(value) </s> remove         ])
 </s> add         } </s> remove                     mapping=dict((httpmethod, methodname) for httpmethod in httpmethods),
 </s> add                     mapping={httpmethod: methodname for httpmethod in httpmethods}, </s> remove         self.choice_strings_to_values = dict([
            (six.text_type(key), key) for key in self.choices.keys()
        ])
 </s> add         self.choice_strings_to_values = {
            six.text_type(key): key for key in self.choices.keys()
        }
        })
              list_kwargs['allow_empty'] = allow_empty
          list_kwargs.update(dict([
              (key, value) for key, value in kwargs.items()
              if key in LIST_SERIALIZER_KWARGS
        })
          meta = getattr(cls, 'Meta', None)
          list_serializer_class = getattr(meta, 'list_serializer_class', ListSerializer)
          return list_serializer_class(*args, **list_kwargs)
  
      def to_internal_value(self, 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/serializers.py