# let the caller set 'shell' when that is desirable
if shell or cmd.__contains__(">"):
prog = subprocess.Popen(cmd, shell=True)
# let the caller set 'shell' when that is desirable
if shell or cmd.__contains__(">"):
prog = subprocess.Popen(cmd, shell=True)