switch to flake8

I switched to flake8 and reduced the complexity about a week ago and never did a pull request