Various style and build fixes.

* Fixed most pylint warnings.
* Suppressing distutils import error.
* Suppressing py2exe import error, as is installed by configure script.
* Moved setup code inside a main function.
Merge pull request #3 from Renelvon/win_build_fixes

Various style and build fixes.