converted compress and extract scripts to python 2