Imports modules using __import__.