I have these two modules:
foo.py
bar.py
In foo.py I have a function fn() declared and a print('test'), outside of fn() context.
At the top of bar.by, I do:
from foo import fn
I can call fn, but I also print 'test', which I don't want.
Why? How can I import only what is explicitly imported from another module?