Change python code for examples 5 and 7 to match example 6, 8, ... 10
Merge pull request #1 from mikejbrown/fix-inconsistent-code-in-guide-examples

Change python code for examples 5 and 7 to match examples 6, 8, ... 10