I didn't run "make test" before the last changes

- Clean up a bunch of flake8 complaints
- Why do I always think it's get_logger rather than getLogger?