PEP 3110 Exception changes for Python 3