Use of tarfile instead of shutil

Shutil doesn’t have the make_archive function in older versions