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