More formatting fixes, link fixes

This pull request:
* substitutes direct links to Python documentation for their appropriate Sphinx counterparts.
* adds code tags to certain passages.