pyflakes fixes for python3