Add support for gzip-encoded urllib responses.

* Fix some code conventions