zelib = ctypes.CDLL('testlib.so')
zelib.multiplier(2, 3)
zelib.multiplier.restype = ctypes.c_float
zelib.multiplier.argtypes = [ctypes.c_float, ctypes.c_float]
zelib.multiplier(2, 3)
Using a C function in Python