python bindings: callback test