fix initialization of ctypes funcs with prototypes