And the award for the most gratuitous comments before an import goes to one of my (former) workmates, who wrote this piece of code:
# Used for base64-decoding. import base64 # Used for ungzipping. import gzip -- Steven -- https://mail.python.org/mailman/listinfo/python-list