PY3: fix exception style