Formatting fixes

1. One of the `~~~` markers was indented, so that code block wasn't closing properly.
2. Some Python was both indented and wrapped in `~~~`.