def uncompress(path):
    with gzip.open(path, 'rb') as src:
        with open(path.rstrip('.gz'), 'wb') as dest:
            shutil.copyfileobj(src, dest)
with multiprocessing.Pool() as pool:
    for _ in pool.imap_unordered(uncompress, filenames, chunksize=1):
        pass
Как разархивировать несколько файлов gz в python, используя многопоточность?