Handle reraise in PY3