How to record microphone input in Python with PyAudio