code: def save(self, path):
          
          (folder, filename) = os.path.split(path)
          (name, extension) = os.path.splitext(filename)
  
          if not name:
              raise ValueError, "name is required"
  
          path = os.path.join(folder, name + self.extension)
          f = open(path, "wb")
          f.write(self.contents)
          f.close()
  
          return path
docs: Save waveform to file path as a WAV file.
  
          :returns: Path to the saved file.