code: def dump_to_stream(self, cnf, stream, **opts):
          
          tree = container_to_etree(cnf, **opts)
          etree_write(tree, stream)
docs: :param cnf: Configuration data to dump
          :param stream: Config file or file like object write to
          :param opts: optional keyword parameters