Help on Mages Might!

i = 0
while i<5:
    i+=1

has no delay. See here.

You probably want

i = 0
while True:
    if i == 5: break
    i += 1