Fixed linting errors

Check everthing with flake8, and
fix things.