Small tweaks to example.rst

wold => world
Add Python code block for syntax highlighting.