code: def download(self, id, directory):
          
          url = (self._base + 'lot/{0}/download').format(id)
          r = requests.get(url, auth=self._auth, stream=True)
          file_name = r.headers['Content-Disposition'].split('"')[-2]
  
          if len(directory) < 1:
              return
  
          with open(os.path.join(directory, file_name), 'wb') as file:
              for chunk in r.iter_content(chunk_size=1024):
                  if chunk:
                      file.write(chunk)
                      file.flush()
docs: Download the file with given identifier to the given directory
          :param id: Identifier of the lot to download
          :param directory: Directory where the downloaded ZIP should be stored
          :return: None