fix exception raise

oops, python, not C++ or Java