Got ctypes working properly