Updated to standard Python C coding style, and fixed a few error checking nits.
Updated to standard Python C coding style, and fixed a few error
checking nits.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator