from ctypes import * import os libtest = CDLL("libtest.so") print libtest.multiply(2, 2)