I'm not sure this link that discusses things about ctypes is a good intro to callback functions