Removing unused import statements and PEP8-style fixes.