Simplify some of the code.  Use PyErr_Format() instead of sprintf(), etc. Reduces lines of code and compiled object size.
Simplify some of the code.  Use PyErr_Format() instead of sprintf(), etc.
Reduces lines of code and compiled object size.

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