Fixed up a bunch of flake8 warnings