cleaned up and tested python examples