log.info('::singleProcessExecuter > At %s, executing "%s"' % (datetime.
    datetime.now(), ' '.join(command)))
cwd = kwargs.get('cwd', os.getcwd())
user = kwargs.get('user', getUid())
sheel = kwargs.get('shell', False)
startDatetime = datetime.datetime.now()
myPopy = subprocess.Popen(command, cwd=cwd, preexec_fn=os.seteuid(getUid(
    user)), shell=sheel, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
    stdin=subprocess.PIPE)
retval['pid'] = myPopy.pid
log.debug('::singleProcessExecuter > Command "%s" got pid %s' % (' '.join(
    command), myPopy.pid))
checking status of process with subprocess.Popen in Python