python subprocess feed stdin