python subprocess read stdout and stderr while running