libimport instead of execfile

Hi Florian,

doesn't this simple solution work already? Why wrapping in a main function?

Oliver