code: def refresh_swagger(self):
          
          try:
              os.remove(self._get_swagger_filename(self.swagger_url))
          except EnvironmentError as e:
              logger.warn(os.strerror(e.errno))
          else:
              self.__init__()
docs: Manually refresh the swagger document. This can help resolve errors communicate with the API.