Fix pyflakes errors

We should have some kind of pre-push hook or general build check for
this stuff.