Fix Python tests in debug mode under Windows & ctest.

Fixes trac issue [#10745](http://trac.mantidproject.org/mantid/ticket/10745)

It should be enough to verify that the Windows debug build passes: http://builds.mantidproject.org/view/Develop%20Builds/job/develop_clean_win7_debug/