with Image(filename='3.png') as three:
    wand.sequence.append(three)
for cursor in range(3):
    with wand.sequence[cursor] as frame:
        frame.delay = 10 * (cursor + 1)
wand.type = 'optimize'
wand.save(filename='animated.gif')
How do I create an animated gif in Python using Wand?