rhel6 compat, no gzip context manager, sad try-finally instead :(

Unfortunately no gzip context manager exists in 6.4 (so far as I can tell). Replaced with try-finally and that worked for me.