updated compress, forgot the "import tarfile"