Replacing assert with Py_ErrFormat so that exception stack is seen if assert ever fails