thanks for the help guys I think in a nutshell what I needed was the following. I've removed exception handling to simplify the example... fp, pathname, description = imp.find_module( modname ) print 'importing module', modname LoadedModule = imp.load_module( modname, fp, pathname, description) LoadedModule.Export(i)