Many, but not all, suggested pep8 changes. Unit tests all pass.
PEP8 changes.

Ignoring E501 and E225, there are only two warnings left. Most of the changes are adding or removing whitespace where called for. A handful of lines are replacing 'if foobar == None:' with 'if foobar is None:'. Minidom tests pass.