Add Python examples

Insert examples in Python into the documentation for 1.0.