More fixes to the python examples