flake8 fix for Py3