      """
      If the given setting is a string import notation,
      then perform the necessary import or imports.
      """
      if isinstance(val, basestring):
          return import_from_string(val, setting_name)
      elif isinstance(val, (list, tuple)):
          return [import_from_string(item, setting_name) for item in val]
      return val
  
 
</s> remove                     if value == smart_unicode(k2):
 </s> add                     if value == smart_text(k2): </s> remove         return smart_unicode(value)
 </s> add         return smart_text(value) </s> remove         elif hasattr(value, '__iter__') and not isinstance(value, (dict, basestring)):
 </s> add         elif hasattr(value, '__iter__') and not isinstance(value, (dict, six.string_types)): </s> remove     words = word_split_re.split(force_unicode(text))
 </s> add     words = word_split_re.split(force_text(text))
    if isinstance(val, string_types):
      """
      If the given setting is a string import notation,
      then perform the necessary import or imports.
      """
    if isinstance(val, string_types):
          return import_from_string(val, setting_name)
      elif isinstance(val, (list, tuple)):
          return [import_from_string(item, setting_name) for item in val]
      return val
  
keep keep keep keep replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/settings.py