Simulating Time dependent on input with python
I've found there's no built in way in blender (other than physics simulation engines) to do this. Instead I mapped 'time' to frames linearly and customized the number of frames in the animation with scene.frame_end with the while conditional being

   while number_of_frame &lt; scene.frame_end: