You should be using the
viztask module. There are many examples of it in the docs and on the forum.
Code:
import viztask
def callVizFunctionsInALoop():
for i in range(0, 10):
moveAvatar(i)
takeSnapshot()
yield viztask.waitTime(someDelay) #Pause function for some time
viztask.schedule( callVizFunctionsInALoop() )