def merge_files()

in access/preprocess.py [0:0]


def merge_files(input_filepaths, output_filepath, round_robin=False):
    if not round_robin:
        return concatenate_files(input_filepaths, output_filepath)
    with open(output_filepath, 'w') as f:
        for lines in yield_lines_in_parallel(input_filepaths, strict=False):
            for line in lines:
                if line is None:
                    return
                f.write(line + '\n')