Add pyflakes to the Makefile and cleanup unneeded imports