Fixed PEP-8 formatting recommendations in the doc generation code.

This fixes a series of warnings from the pep8 tool in the auto-generating
Sphinx configuration files and our custom Sphinx extensions. These involve
improper 'not in' conditionals, and unknown interpreted text.

Testing Done:
Built docs, and ran pep8.

Reviewed at https://reviews.reviewboard.org/r/6668/