Is it possible to call a Python function from a C dll function?
We consider this C function:
 void foo( void (*functionPtr)(int,int) , int a, int b);
On Python, I would like to call foo and set the callback to a Python function: 
def callback(a, b):
    print("foo has finished its job (%d, %d)" % (a.value,b.value))
dll.foo( callback, c_int(a), c_int(b) )
Unfortunately, the ctypes documentation is pretty light on this topic and the above code does not work.