Consider the case when we are trying to invoke auto completion in
"import foo.bar.<caret>". Previously (mistakenly) type of
qualifier "foo.bar" was PyImportedModuleType(bar), which could not be
successfully resolved unless there is some other top-level "bar" module
under project roots. Now it's correct PyImportModuleType(foo.bar).