pyflakes cleanup, many unused imports