How to Import dependency from one file to another inside of a package?

Can you say more about why submodules are discouraged? It seems like your example uses them?

I’ve heard advice like this before but also have seen it authoritatively contradicted.