Fix a few typos in python example scripts and align them with the latest api changes