Change exceptions to use PyErr_SetString