fix wrong type in python bindings