These are not lists, and the right way to work with them is not how you work with lists. If you want to write the stdout and stderr process into one combined stream, do this with output redirection:
from subprocess import PIPE, STDOUT
process = subprocess.Popen(cmd, stdout=PIPE, stderr=STDOUT, ...)
source
share