import csv


def loadFlags(file):
    """Takes in a filename/path and reads the data stored in the file. If it is 
    a single column of data returns a 1D list, if it is multiple columns of 
    data returns a 2D list. Note the first line is skipped as it assumes these 
    are column labels. 
    """
    
    with open(file) as fstrm:
        data = csv.reader(fstrm)
        vals = list(data)
    if all([len(val)==1 for val in vals]):
        data = [val[0] for val in vals[1:]]
    else:
        data = vals[1:]
    return data