A few documentation fixes.

I'm not sure about "in Python" vs. "on Python", but as the former is mostly used here, I adjusted occurences of the latter.

I changed the text copy of the error message in accordance with the code that raises it.