Replacing wrapper with CFFI and libFFI