  
  SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
  
  from django.http import Http404
  from rest_framework.compat import (get_model_name, oauth2_provider)
  
  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
 
</s> remove from rest_framework.compat import oauth2_provider
 </s> add from rest_framework.compat import oauth2_provider, oauth2_provider_scope </s> remove         read_only_access_token.scope = oauth2_provider.scope.SCOPE_NAME_DICT['read']
 </s> add         read_only_access_token.scope = oauth2_provider_scope.SCOPE_NAME_DICT['read'] </s> remove         read_write_access_token.scope = oauth2_provider.scope.SCOPE_NAME_DICT['write']
 </s> add         read_write_access_token.scope = oauth2_provider_scope.SCOPE_NAME_DICT['write']
from rest_framework.compat import (get_model_name, oauth2_provider_scope,
                                   oauth2_constants)
  
  SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
  
  from django.http import Http404
from rest_framework.compat import (get_model_name, oauth2_provider_scope,
                                   oauth2_constants)
  
  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
keep keep keep keep replace keep keep keep keep keep
 it's safe to import scope and constants 
rest_framework/permissions.py