import csv


def parse_csv_dict(filename):
    """ Parses csv file and returns header columns and data. """
    data = []
    with open(filename) as csvfile:
        reader = csv.DictReader(csvfile)
        for row in reader:
            data.append(row)

    return reader.fieldnames, data