Simple wrapper for C code based on ctypes