second example for python bindings