made test_format.py un-executable, so that nosetests runs it.

 Also fixed pep8 issues that this uncovered.
Let's not install matplotlib on travis.