fix pyflakes errors