Let\'s say I have the following directory structure:
a\\
__init__.py
b\\
__init__.py
c\\
__init__.py
c_file.p
You may defer the import, for example in a/__init__.py:
def my_function():
from a.b.c import Blah
return Blah()
that is, defer the import until it is really needed. However, I would also have a close look at my package definitions/uses, as a cyclic dependency like the one pointed out might indicate a design problem.