code: def write(self, basename="/tmp/resynclist.xml"):
          
          self.default_capability()
          fh = open(basename, 'w')
          s = self.new_sitemap()
          s.resources_as_xml(self, fh=fh, sitemapindex=self.sitemapindex)
          fh.close()
docs: Write a single sitemap or sitemapindex XML document.
  
          Must be overridden to support multi-file lists.