Cython callback sample