Convert from alsaaudio to pyaudio