  """
  # flake8: noqa
  import django
  
  # django-filter is optional
  try:
      import django_filters
 
</s> remove from StringIO import StringIO
 </s> add from rest_framework.compat import StringIO </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 six import StringIO </s> remove from urlparse import urlparse
 </s> add try:
    from urllib.parse import urlparse
except ImportError:
    from urlparse import urlparse
from __future__ import unicode_literals
import six

  """
  # flake8: noqa
from __future__ import unicode_literals
import six

  import django
  
  # django-filter is optional
  try:
      import django_filters
keep add keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/compat.py