Reformatted to follow http://legacy.python.org/dev/peps/pep-0007/ .
Only tabs to spaces and some C++ single line comments replacements.