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.
Can we not drop the brackets on the Unix side too?