python: fix interpreter used after unload of a script
perl: fix context used after unload of a script
lua: fix interpreter used after unload of a script
guile: fix module used after unload of a script