def reverse_enum(L):
    for index in reversed(range(len(L))):
        yield index, L[index]
L = ['foo', 'bar', 'bas']
for index, item in reverse_enum(L):
    pass
Traverse a list in reverse order in Python