fix some flake 8 warnings
add flake8 configuration file