def fofn2fns(i_fofn):
    """Get filenames from fofn"""
    fns = []
    for fn in open(i_fofn, 'r'):
        fn = fn.strip()
        if len(fn) == 0 or fn[0] == '#':
            continue
        fns.append(fn)
    return fns