Make a build target for running pyflakes on relevant files, and fix errors caught by running it.