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
ENH: io/wavfile: avoid data copy in wavfile.write

Needs Python >= 2.7.4 due to memoryview issues, so limit to Python 3.
Merge pull request #2632 from nils-werner/io-wav-buffer-friendly

ENH: io/wavfile: enable writing and reading with general file-like objects

This commit enables scipy.io.wavfile.write() to also accept buffers instead of
just a filename.

Previously, only scipy.io.wavfile.read() supported a both filenames and buffers
as the input file argument. Now, write() will be able to do the same. This
means you can then read and write not only to .WAV files but also to and from
StringIO variables.