hello = ctypes.cdll.LoadLibrary('./hello.so')
libc = ctypes.CDLL(ctypes.util.find_library('c'))
hello.hello.argtypes = ctypes.c_char_p,
hello.hello.restype = ctypes.c_char_p
libc.free.argtypes = ctypes.c_void_p,

def hello(name):
    _result = hello.hello(name)
result = _result.value
libc.free(_result)
return result
print(hello('Frank'))
ctypes return a string from c function