foo.py
from bar import x
def y(a,b):
print x(a,b)
bar.py
from foo import y
def x(a,b):
return 'haha'
def z(a,b):
print y(a,b)
this breaks
foo.py
from bar import x
def y(a,b):
print x(a,b)
bar.py
def x(a,b):
return 'haha'
def z(a,b):
from foo import y
print y(a,b)
this is ok