Added flake8 configuration

Added flake8 to Makefile

Fixed complaints of flake8