Event delivery to/from Python and C++.