def _rebuild(self, entries):
    new_list = []
    if (len(entries) > 0):
        new_list.extend([(entries[i][1][0], [entries[(i + 1)][0]]) for i in range((len(entries) - 1))])
    return new_list
def _rebuild(self, entries):
    new_list = []
    if (len(entries) > 0):
        new_list.extend([(entries[i][1][0], [entries[(i + 1)][0]]) for i in range((len(entries) - 1))])
    return new_list