assert len(command) > 0, 'Received empty list of parameters'
retval = {'exitCode': -1, 'stderr': '', 'stdout': '', 'execTime':
    datetime.timedelta(0), 'command': None, 'pid': None}
retval['command'] = command
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)
checking status of process with subprocess.Popen in Python