Code impovements, pep8 changes:

- remove obsolete sys import
- remove unused result variable in removeUselessSpaces()

Change-Id: I272a4cbf03c72be406e4e8e0af92b5903d4dc4ae