I suspect that something should be checking if a python error has been set, if only to clear it. I just haven't seen where that takes place.