Style fixes & cleanup: pep8 and pychecker fixes, Google style guide fixes.
Made "python setup.py test" work.