adjust compress support for py3k