python subprocess redirect stdin