code: def check_credentials(self):
          ''' Check credentials '''
          req = requests.get(self.api_server + '/api/ad',
                             auth=(self.access_key, self.secret_key))
          # Not sure 500 server error should be included here
          if req.status_code in [401, 403, 500]:
              return False
          else:
              return Truf check_credentials(self):
          ''' Check credentials '''
          req = requests.get(self.api_server + '/api/ad',
                             auth=(self.access_key, self.secret_key))
          # Not sure 500 server error should be included here
          if req.status_code in [401, 403, 500]:
              return False
          else:
              return True
docs: Check credentials