cffi is mostly our answer. The cpyext layer (the layer that emulates CPython C API) is there too, but it's prone to be slow due to the need to emulate some other model of a VM. It's possible to do a better job, but just noone really feels like fighting with this monster.