  import base64
  from django.contrib.auth import authenticate
  from django.middleware.csrf import CsrfViewMiddleware
  from django.utils.translation import ugettext_lazy as _
  from rest_framework import exceptions, HTTP_HEADER_ENCODING
  from rest_framework.authtoken.models import Token
  from rest_framework.compat import get_user_model
  
  
  def get_authorization_header(request):
      """
 
</s> remove from rest_framework import parsers
from rest_framework import renderers
 </s> add  </s> remove from rest_framework import HTTP_HEADER_ENCODING
from rest_framework import exceptions
 </s> add from rest_framework import exceptions, HTTP_HEADER_ENCODING </s> remove from django.core.paginator import InvalidPage, Paginator as DjangoPaginator
from django.template import Context, loader
 </s> add 
  import base64
  from django.contrib.auth import authenticate
  from django.middleware.csrf import CsrfViewMiddleware
  from django.utils.translation import ugettext_lazy as _


  from rest_framework.compat import get_user_model
  
  
  def get_authorization_header(request):
      """
keep keep keep keep replace replace keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/authentication.py