The best way to organize code?

I have my project split into two. I have a general “engine” which has a bunch of boilerplate (network stuff, enetity-component system, etc) which is a python package and will, eventually, be its own panda package.

On the game side I do the best I can to organize it as python packages by functionality, but I have very much failed here!