Remove trailing blanks.
fix indent
Use new style class.
Remove unused local variable.
remove unused imports and trailing spaces.
Merge pull request #74 from KLab/cleanup

Cleanup indent and trailing spaces.