python subprocess stdin flush