It looks like you want to iterate over the list while keeping a counter. You can use `enumerate` for that. It would also be more readable since you can name the element in the list. E.g.

    for i, element in my_list:
        if 'field-field-speaker' in element:
            ...