I have a Python program A that imports another program B.
Program A has a function foo and main classes and global variables etc.
Program B has a function bar.
Program A's main function is ran user input during runtime is bar, so A calls bar: B.bar(stuff).
B.bar() tries to call A.foo(). What is the proper way of doing this?