Tweak an error message.
Change whitespace.
Change variable names to conform to the naming convention.
Improve 2 variable names.
Change whitespace.
Make a docstring clearer.
Fix a typo.