PY3: fix except syntax