Fix for Python's getoutput being broken on Windows