def parse_fns(fns):
    """Parse list of filenames."""
    new_fns = []
    for fn in fns:
        if fn.is_dir():
            new_fns.extend(list(fn.glob('**/CORRECT.LP')))
        else:
            new_fns.append(fn)
    new_fns = [fn.resolve() for fn in new_fns]
    return new_fns
