Added condition for Windows to handle its inability to use close_fds.

From Python Manual: "Note that on Windows, you cannot set close_fds to true and also redirect the standard handles by setting stdin, stdout or stderr."