Python tool/framework to generate a wave file