handling import, it returns a module spec. • module spec contains module’s metadata i.e path, name, etc. The import machinery uses this spec to load modules later
control after what happens after ‘import x’ • importing from ftp, https, authorization checks. • importing from a variety of storage, not just .py/.pyc