Fix document typos, indentation in python code, and API examples.

Patch by Bruce Mitchener!