For example, code in the A.B.C module can do:
from . import D # Imports A.B.D from .. import E # Imports A.E from ..F import G # Imports A.F.G