Remove unused variable, and other minor flake8 warnings

Unused variable from https://github.com/python-pillow/Pillow/pull/1012