escape 8-bit chars when generating .py files. fixes bug #566302
escape 8-bit chars when generating .py files. fixes bug #566302

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