code: def get_token(self):
          
          if self.token == None:
              self.token = self.authenticate(self.username, self.password)
          try:
              return str(self.token,'utf-8')
          except TypeError:
              return self.token
docs: Method to retrieve an auth token.
  
          The cached global token is looked up and returned if it exists. If it
          is `None` a new one is requested and returned.
  
          Returns:
              Simplenote API token as string