Found my change. Corrected run time/TypeError mischief.

I had accidentally deleted the wrapper class in frame 10. Also handled the type error in frame 15 so the python file generates cleanly.