SyntaxFix
Write A Post
Hire A Developer
Questions
Starting from Python 3.1, you can use importlib :
import importlib foobar = importlib.import_module("foo-bar")
( https://docs.python.org/3/library/importlib.html )