Updating the Python interface