looking_for = iter(when_to_change_the_mode)
current = next(looking_for)
for l in listA:
    do_something(current)
if l == current:
    pass
How to get the item currently pointed at by iterator without incrementing?