Updates to Python scripts that support doctest based testing.