  from django.utils.six.moves.urllib import parse as urlparse
  from django.utils.translation import ugettext_lazy as _
  from rest_framework.compat import OrderedDict
  from rest_framework.exceptions import NotFound
  from rest_framework.response import Response
  from rest_framework.settings import api_settings
  from rest_framework.utils.urls import (
      replace_query_param, remove_query_param
  )
  import warnings
 
</s> remove from django.utils.six.moves.urllib import parse as urlparse
 </s> add from django.template import Context, loader </s> remove from django.core.paginator import InvalidPage, Paginator as DjangoPaginator
from django.template import Context, loader
 </s> add  </s> remove from rest_framework.compat import HttpResponseBase, View, set_rollback
 </s> add 
  from django.utils.six.moves.urllib import parse as urlparse
  from django.utils.translation import ugettext_lazy as _
  from rest_framework.compat import OrderedDict
  from rest_framework.exceptions import NotFound

  from rest_framework.settings import api_settings
  from rest_framework.utils.urls import (
      replace_query_param, remove_query_param
  )
  import warnings
keep keep keep keep replace keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/pagination.py