test = CDLL('./test.so')
test.prnt_.argtypes = [c_char_p, c_long]
test.sin_2_.argtypes = [POINTER(c_float)]
test.sin_2_.restype = c_float
s = 'Mary had a little lamb'
test.prnt_(s, len(s))
x = c_float(4.56)
test.sin_2_(byref(x))
Using python-ctypes to interface fortran with python