code formatting testing: move pyflakes import after check for flake8
inside test function. fixes #761