Fix PY3 exception raise