Further developments in the python wrapper