Docs: use full code-blocks for python highlighting

In reStructuredText ``::`` shows as an ordinary code block and doesn't run through python pygments.