fixed Exception handling for Py3