def retag_panels(panels):
    """ Re-tag panels.

    :param panels: List of Panel objects
    :returns: List of re-tagged Panel objects
    """

    for i, panel in enumerate(panels):
        panel.tag = i
    return panels