def create_process(cmd, root_helper=None, addl_env=None, log_output=True):
if root_helper:<EOL><INDENT>cmd = shlex.split(root_helper) + cmd<EOL><DEDENT>cmd = map(str, cmd)<EOL>log_output and LOG.info("<STR_LIT>", cmd)<EOL>env = os.environ.copy()<EOL>if addl_env:<EOL><INDENT>env.update(addl_env)<EOL><DEDENT>obj = subprocess_popen(cmd, shell=False, stdin=subprocess.PIPE,<EOL>stdout=subprocess.PIPE, stderr=subprocess.PIPE,<EOL>env=env)<EOL>return obj, cmd<EOL>
Create a process object for the given command.

    The return value will be a tuple of the process object and the
    list of command arguments used to create it.