Fix some "errors" found by pyflakes