'Dumps parsed configurations into files.
:param str ext: The file extension to use for the dumped files. If
empty, this overrides the existing conf files.
:param bool lazy: Only write files that have been modified'

def filedump(self, ext='tmp', lazy=True):

    for filename in self.parsed:
        tree = self.parsed[filename]
        if ext:
            filename = ((filename + os.path.extsep) + ext)
        try:
            if (lazy and (not tree.is_dirty())):
                continue
            out = nginxparser.dumps(tree)
            logger.debug('Writing    nginx    conf    tree    to    %s:\n%s', filename, out)
            with open(filename, 'w') as _file:
                _file.write(out)
        except IOError:
            logger.error('Could    not    open    file    for    writing:    %s', filename)
