changes in python wrapper