Run pyflakes as a precursor to the tests in the build process

If pyflakes detect any problems, the build will fail in error.