issue #1700 replace raise Exception()
issue #1700 replace PyExc_Exception