* Fixed some unresolved imports and undefined variables
* Removed lot of unused imports and variables, removed some re-imports
* PEP8-ify white spaces, removed trailing spaces, blank lines are blank etc.
* Added some false positive error/warning disabling for pylint and pydev
* Did some refactoring to remove code duplication
* Fixed lot of object's attributes were not defined in __init__
* Refactored some variable names to code be more readable
* Removed some variables redefinitions (either build-ins and few locals)