minor pep8 / pyflakes fixes