Add rst code-blocks to a bunch of missing examples

Several examples were either missing code-blocks entirely,
this patch added either bash or python, so the rendered HTML
is nicer.

Change-Id: Ia145dc78a871dc27cf0926ea1ef9cf9b6df564b7
Merge "Add rst code-blocks to a bunch of missing examples"