@staticmethod
def page_download_finish(bar, files, fs):
    """Callback functions for page_download_task futures, assigning the
        resulting filehandles to the right index in the array and updating
        the progress bar.
        """
    index, f = fs.result()
    files[index] = f
    bar.update(1)
