subprocess and ffi