Python CFFI helper.