Modifies the raise style for Python 3 support.