code: def add_package_origins(self, modpath):
          
          parts = modpath.split('.')
          parent = parts[0]
          for part in parts[1:]:
              child = parent + '.' + part
              if self.find_module(child):
                  self.add(parent, part, child)
              parent = child
docs: Whenever you 'import a.b.c', Python automatically binds 'b' in a to
          the a.b module and binds 'c' in a.b to the a.b.c module.