Removed unused imports and added pyflakes to the makefile