python subprocess check_output stdin