What is the best way to add a modules loaded with __import__() to the global namespace? Example: foo = __import__( 'foo', globals(), locals(), ['*'] ) PS: what exactly are the parameters globals and locals used for?