Add compress with python