Make scipy.io.wavfile.write buffer-friendlier
Fixed typo in scipy.io.wavfile.write
Changed filename parameter name, improved compatibility with StringIO as buffer
Unittests cover StringIO buffers and real files
BytesIO type for wavfile unittests
Remove old code
Simplified is true statement
Catch parsing errors and close file handle afterwards
Use data.ravel().data to prevent data copying