How to propagate an exception from a Python callback through a C function, using Cython.