def max_column_sizes(header, data):
    """ Determine the maximum length for each column and return the lengths as a list """
    sizes = [len(h) for h in header]
    for row in data:
        for i in range(len(header)):
            if len(row[i]) > sizes[i]:
                sizes[i] = len(row[i])
    return sizes