Make code more PEP8 compliance

- Convert *all* tabs to spaces.
- Remove *all* trailing spaces and trailing blank lines.
- Full pep8 fixes for example scripts
- Partial pep8 for most code
- Add tox.ini file with line limit of 120