def _col_widths(lines):
    """Return a list of maximum column widths"""
    widths = []
    for line in lines:
        for i, part in enumerate(line):
            while len(widths) <= i:
                widths.append(0)
            widths[i] = max(len(part), widths[i])
    return widths
