'Create a new process executing \'cmd\' and with environment \'env\'.
:param cmd: string representing the command line to be executed
:param env: instance representing the environment which should be used
for the new process. Look at \'os.environ\' for an example.'

def __init__(self, cmd, env):

    self._si = win32process.STARTUPINFO()
    self.returncode = None
    self.stdin = None
    self.stdout = None
    self.stderr = None
    self.pid = None
    cmd = '    '.join(cmd)
    self._initialize_named_pipes_for_std()
    self._start_process(cmd, env)
