code: def save_token(self):
          
          if self.token is None:
              raise ValueError('You have to set the "token" first.')
  
          try:
              if not self.token_path.parent.exists():
                  self.token_path.parent.mkdir(parents=True)
          except Exception as e:
              log.error('Token could not be saved: {}'.format(str(e)))
              return False
  
          with self.token_path.open('w') as token_file:
              # 'indent = True' will make the file human readable
              self.serializer.dump(self.token, token_file, indent=True)
  
          return True
docs: Saves the token dict in the specified file
          :return bool: Success / Failure