Added CFFI wrapper: based on a coarse modification of the ctypes wrapper code