def indexes(List):
    for index in xrange(len(List)):
        yield index