workaround Popen bug on Windows bugs.python.org/issue/3905