import csv


def read_csv(filename):
    """ reads a CSV file, returns a list of dicts, one for each packet """
    file = []
    with open(filename, encoding="utf-8") as csvfile:
        for row in csv.DictReader(csvfile, delimiter=',', quotechar='"'):
            file.append(row)
    return file