pep8: Fix setup.py
pep8: Fix xml dumps subsystem

Only fixes formatting issues. There are still:

- Unused imports
- Unused variables
- Undefined variables being used
- Line length standards to adopt
pep8: Types subsystem
Add tox.ini file

Increases permissible line length to 120cols.
Convert *all* tabs to spaces
Remove all trailing spaces
pep8: Fully fix examples/
pep8: import fixes for xml_dumps
pep8: Optimize imports for all files
pep8: Spacing / indent fixes for all code
pep8: Check for none using 'is' and not '=='
pep8: Remove all blank lines at end of files
pep8: Fix multiple statements in one line
pep8: Remove extra blank lines
pep8: Remove extra backslashes that were not needed
pep8: Fix trivial missing imports
Fixed some issues with API-based errors.
Manual merge.