Test in tox without --system-site-packages.

This was left over from the time we were using pycairo.
Correctly close StreamingGzipFile, and log this kind of error

… rather than silence them. Logs make tests fail.
Fix code formatting. (Clean flake8!)
Add flake8 to tox tests.