fix up pyflakes complaints