Hi,
just as a quick (and not at all exhaustive) reply: You might want to have a look at run_file and run_code in the lang doc. I use run_file to run code (synchronized) within my live looper. Admittedly this is not exactly an answer to your proposal. But it might serve the same purpose.