Python CFFI interface for phantompy project