python pipe subprocess output to stdout