improved some of the python examples