  from django.core.urlresolvers import resolve, get_script_prefix
  from django.conf import settings
  from django.forms import widgets
  from django.forms.models import ModelChoiceIterator
  from django.utils.encoding import is_protected_type, smart_unicode
  from django.utils.translation import ugettext_lazy as _
  from rest_framework.reverse import reverse
  from rest_framework.compat import parse_date, parse_datetime
  from rest_framework.compat import timezone
  from urlparse import urlparse
 
</s> remove from urlparse import urlparse
 </s> add try:
    from urllib.parse import urlparse
except ImportError:
    from urlparse import urlparse </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 from django.utils.encoding import smart_unicode
 </s> add 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 urlparse import urlsplit, urlunsplit
 </s> add try:
    from urllib.parse import urlsplit, urlunsplit
except ImportError:
    from urlparse import urlsplit, urlunsplit
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
  from django.core.urlresolvers import resolve, get_script_prefix
  from django.conf import settings
  from django.forms import widgets
  from django.forms.models import ModelChoiceIterator
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
  from django.utils.translation import ugettext_lazy as _
  from rest_framework.reverse import reverse
  from rest_framework.compat import parse_date, parse_datetime
  from rest_framework.compat import timezone
  from urlparse import urlparse
keep keep keep keep replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/fields.py