def delay(iterator, wait = 1, every = 1):
    for i, photo in enumerate(iterator):
        if i > 0 and i % every == 0:
            time.sleep(wait)
        yield photo
Delays between every n images for the specified time. Useful so that Flickr
dataset/ETHPy150Open cvondrick/pyvision/vision/flickr.py/delay