fixed issues found by pyflakes