Fix gzip tests to work on py26