def schedule(delay, func):
 t = (time() + delay)
 insort(scheduled_calls, (t, func))

def schedule ( delay , func ) : t = ( time ( ) + delay ) insort ( scheduled_calls , ( t , func ) )
arrange for the given function to be called after the specified delay in seconds .