@rpc_export('<STR_LIT>', sync=True)<EOL><INDENT>def python_execute(self, script, range_start, range_stop):<DEDENT>
self._set_current_range(range_start, range_stop)<EOL>try:<EOL><INDENT>exec(script, self.module.__dict__)<EOL><DEDENT>except Exception:<EOL><INDENT>raise ErrorResponse(format_exc_skip(<NUM_LIT:1>))<EOL><DEDENT>
Handle the `python` ex command.