I have function foo() in main.py. In main.py, I import create.py. but there is a function in create.py that needs foo() from main. I can't import main.py into create.py because main.py errors out...I assume this is some kind of race condition.
How can I make foo() available in create.py namespace? It seems kind of inefficient to make foo() a module and imported by both main.py and create.py just for one function.