fixed pyflakes errors