python call c library, mainly use python's ctypes module.