Use one import per line.
Declare global.
Fix lines that were too long.
Fix typo.
Some indentation fixes.
Some indentation fixes.