Add tests for the Python programs

Adjust 06-the-one/tf-06.py to avoid adding an extra blank line at the end, so it will pass the tests.

My attempts to run 15-restful/tf-15.py for pride-and-prejudice.txt just hang. I haven't yet tried to figure out what's going wrong.