proc = subprocess.Popen(self.task['command'], shell=False, bufsize=1,
    stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
output = ''
while True:
    line = proc.stdout.readline()
line = line.decode()
if line == '':
    break
output += line
Перенаправить подпроцесс stderr в stdout