def initCycle(container, seq_func, n=1):
 return container((func() for _ in xrange(n) for func in seq_func))

def initCycle ( container , seq_func , n = 1 ) : return container ( ( func ( ) for _ in xrange ( n ) for func in seq_func ) )
call the function *container* with a generator function corresponding to the calling *n* times the functions present in *seq_func* .