With the stricter distinction between absolute and relative imports, isn't all this discussion a bit obsolete ? If you want to import the builtin "types" module: import types If you want to import the local "types" module: from . import types I don't see the need for a "py" prefix.