refine gzip for gae.py