Add pyflakes.py and run it in make check. Update the source code to fix