old_contents: import floyd
  from floyd.exceptions import AuthenticationException
  from floyd.client.base import FloydHttpClient
  from floyd.model.user import User
  
  
  class AuthClient(FloydHttpClient):
      """
      Auth/User specific client
      """
      def __init__(self):
          self.base_url = "{}/api/v1/user/".format(floyd.floyd_host)
  
      def get_user(self, access_token):
          try:
              response = self.requests.get(self.base_url,
                                           headers={"Authorization": "Bearer {}".format(access_token)})
              user_dict = response.json()
          except Exception:
              raise AuthenticationException("Invalid Token.\nSee http://docs.floydhub.com/faqs/authentication/ for help")
  
          return User.from_dict(user_dict)
  
new_contents: import requests
  
  import floyd
  from floyd.exceptions import AuthenticationException
  from floyd.client.base import FloydHttpClient
  from floyd.model.user import User
  
  
  class AuthClient(FloydHttpClient):
      """
      Auth/User specific client
      """
      def __init__(self):
          self.base_url = "{}/api/v1/user/".format(floyd.floyd_host)
  
      def get_user(self, access_token):
          # This is a special case client, because auth_token is not set yet (this is how we verify it)
          # So do not use the shared base client for this!
          response = requests.get(self.base_url,
                                  headers={"Authorization": "Bearer {}".format(access_token)})
          try:
              user_dict = response.json()
              response.raise_for_status()
          except Exception:
              if response.status_code == 401:
                  raise AuthenticationException("Invalid Token.\nSee http://docs.floydhub.com/faqs/authentication/ for help")
              raise AuthenticationException("Login failed.\nSee http://docs.floydhub.com/faqs/authentication/ for help")
  
          return User.from_dict(user_dict)
  
subject: Fix the auth client appropriately