  from django.utils.encoding import smart_unicode
  from django.utils.xmlutils import SimplerXMLGenerator
  from rest_framework.compat import StringIO
  import re
  import xml.etree.ElementTree as ET
  
 
</s> remove from django.utils.encoding import is_protected_type, smart_unicode
 </s> add from django.utils.encoding import is_protected_type
try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text </s> remove from django.utils.encoding import smart_unicode, DjangoUnicodeDecodeError
 </s> add from django.utils.encoding import DjangoUnicodeDecodeError
try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text </s> remove from django.utils.encoding import force_unicode
 </s> add try:
    from django.utils.encoding import force_text
except ImportError:
    from django.utils.encoding import force_unicode as force_text </s> remove import StringIO
 </s> add from rest_framework.compat import StringIO
 </s> remove from StringIO import StringIO
 </s> add from rest_framework.compat import StringIO
try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text
try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text
  from django.utils.xmlutils import SimplerXMLGenerator
  from rest_framework.compat import StringIO
  import re
  import xml.etree.ElementTree as ET
  
replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/utils/__init__.py