code: def save(self, filename):
          
          cPickle.dump(self, open(self._canonicalize(filename), 'wb'), 
                       protocol=cPickle.HIGHEST_PROTOCOL)
docs: Pickle the whole collection to *filename*.
          
          If no extension is provided, ".collection" is appended.