def preload_module(*modules):
 for m in modules:
  s = ('import %s as x; x.' % m)
  Script(s, 1, len(s), None).completions()

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 .