def file2list(infile):
    """
    Read input list of fits filenames.

    Parameters:
    infile -- file containing a list of input fits files (in chronological order)

    Outputs:
    flist -- python list of filenames

    """
    flist = []
    with open(infile) as fnames:
        for f in fnames:
            flist.append(f.rstrip())
    return flist