Added gzip compression helper with tarfile.