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

We have some tests for the Raven framework that we want to run on Windows.  There are a couple of small issues that prevent it from running out of the box with the Windows Python distribution.
Something like this is a good idea - just remember to cache the choice here so that it's not slow