  from rest_framework.views import APIView
  from rest_framework import parsers
  from rest_framework import renderers
  from rest_framework.response import Response
  from rest_framework.authtoken.models import Token
  from rest_framework.authtoken.serializers import AuthTokenSerializer
  
  
 
</s> remove from rest_framework import exceptions, HTTP_HEADER_ENCODING
from rest_framework.authtoken.models import Token
 </s> add  </s> remove import types
 </s> add 
  from rest_framework.views import APIView


  from rest_framework.response import Response
  from rest_framework.authtoken.models import Token
  from rest_framework.authtoken.serializers import AuthTokenSerializer
  
  
keep replace replace keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/authtoken/views.py