def METHOD_NAME(evt):
    """Load a Python test script."""
    doc["run"].attrs["disabled"] = True
    script_name = evt.target.value + '?foo=%s' % time.time()
    def loaded(req):
        editor.setValue(req.text)
        doc["console"].value = ""
        # Enable "run" button.
        del doc["run"].attrs["disabled"]
    ajax.get(script_name, oncomplete=loaded, timeout=4)