add compress.sh and compress.py and set pure behavor