Errors found by pyflakes