Be backwards compatible with tornado 3 for gzip
Test both tornado==3.2.2 and tornado==4.0.2