Fixing Subprocess code on windows?