support subprocess STDOUT on pre-2.7 python