def preload_module(*modules):
    for m in modules:
        s = "import %s as x; x." % m
        Script(s, 1, len(s), None).completions()
Preloading modules tells Jedi to load a module now, instead of lazy parsing
dataset/ETHPy150Open davidhalter/jedi/jedi/api/__init__.py/preload_module