Pep8-ify code

Make the code pep8 compliant using autopep8 - except for the blank line between
the class definition and its docstring I hate that.