<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_replace_scene(self, event: events.ReplaceScene, signal):
 """ Replace the running scene with a new one. """

        self.stop_scene()
        self.start_scene(event.new_scene, event.kwargs)