Fix Pydoc substitutions

Do not affect indented Python code in the docs