Fix syntax highlighting in Python code examples

Fixes the code examples in the novice Python materials so that they're syntax-highlighted correctly.