  from __future__ import unicode_literals, absolute_import
  from django import template
  from django.core.urlresolvers import reverse, NoReverseMatch
  from django.utils import six
  from django.utils.encoding import iri_to_uri, force_text
  from django.utils.html import escape
  from django.utils.safestring import SafeData, mark_safe
  from django.utils.html import smart_urlquote
  from rest_framework.renderers import HTMLFormRenderer
  from rest_framework.utils.urls import replace_query_param
 
</s> remove from django.core.urlresolvers import reverse, NoReverseMatch
 </s> add  </s> remove from django.utils.safestring import SafeData, mark_safe
 </s> add  </s> remove import re
 </s> add 
  from __future__ import unicode_literals, absolute_import
  from django import template
  from django.core.urlresolvers import reverse, NoReverseMatch
  from django.utils import six

  from django.utils.html import escape
  from django.utils.safestring import SafeData, mark_safe
  from django.utils.html import smart_urlquote
  from rest_framework.renderers import HTMLFormRenderer
  from rest_framework.utils.urls import replace_query_param
keep keep keep keep replace keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/templatetags/rest_framework.py