added support for wav files in python impl