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.