Make scipy.io.wavfile.write buffer-friendlier