python subprocess read stdout while running