Minor changes to Python test harness to allow it to be used on Windows.
Closes #4366

Addresses comments to pull request 4372

Removed a tab that snuck in.