Removes unused imports and unused variables as reported by pyflakes.