python subprocess stdout pipe not working