def _transition_loop(self):
while self._transitions:<EOL><INDENT>start = time.time()<EOL>for transition in self._transitions:<EOL><INDENT>transition.step()<EOL>if transition.finished:<EOL><INDENT>self._transitions.remove(transition)<EOL><DEDENT><DEDENT>time_delta = time.time() - start<EOL>sleep_time = max(<NUM_LIT:0>, self.MIN_STEP_TIME - time_delta)<EOL>time.sleep(sleep_time)<EOL><DEDENT>
Execute all queued transitions step by step.