pep cleanups of tutorial code, plus some minor changes (dt)
Merge pull request #6 from tshirtman/master

pep cleanups of tutorial code, plus some minor changes (dt)