Examples cleanup

This PR brings PEP8 compliance to the examples directory minus some multi-line HTML code embedded in tutor.py

Also, there are a couple of typo-bugs fixed in tutor.py so it doesn't fail on startup now. However,  a change in traitsui ShellEditor and PyFacePythonWidget causes tracebacks due to a lacking history attribute. That is a separate issue, though.