fix warnings by pyflakes