from p1 import m1 foo = m1.p2.m2 #