really thanks to all, i didn't get that my first statements were broken... but my question was more about : exec("from %s import %s" % (im, func)) and i wondered if there were better ways to do it and which was best (using __import__ maybe ?) thanks, s13.