example C program 7zip archiver using libarchive
python version using subprocess