This code works:
import wave
f1 = wave.open(file1, "r")
num_channels_file1 = int(f1.getnchannels())
but it does not work when reading a wav file with a diff bitrate or other property. I can't figure out the difference btw wav files or other intricacies, I just need a way to check if a wav file has 2 channels.