fixes by pyflakes