code: def save_region(region, filename):
      
      region.save(filename)
      logging.info("Wrote {0}".format(filename))
      return
docs: Save the given region to a file
  
      Parameters
      ----------
      region : :class:`AegeanTools.regions.Region`
          A region.
  
      filename : str
          Output file name.