Hello! I know exec is not very nice, but I am not sure if something better exists for the following: fake, v = {}, {} exec """from mod_%s import func""" % modname in fake, v return v["func"](args) Sincerely yours, Roman A.Suzi -- - Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -