fixed flake errors

Fixes flake errors missed by my flake8 plugin. Feel free to delete this PR if you don't care to add another commit.