def csv_to_list(infile):
    """Returns csv as list of tuples (or simple list if one value/row)"""
    with open(infile,'r') as f:
        raw_rows = [r.split(',') for r in f.read().split('\n') if r]
    raw_lengths = set([len(r) for r in raw_rows])
    if any([l>1 for l in raw_lengths]):
        return raw_rows
    else:
        return [r[0] for r in raw_rows]