python subprocess stdout to file and console