Clean whitespaces.
Make Python 3 (3.3+) compatible.