def concatenate_files(flist):
    """Iterates over a list of files and yields each line sequentially.
    """
    for fhandle in flist:
        for line in fhandle:
            yield line
        fhandle.close()
