Passing a Python callback to C++ in Cython | Hacker News Reader