pyflakes: fix unused imports and vars