Fix some pyflakes errors

Temporary one time fix until pyflakes is part of CI.