I’m with you. I quit a past job over having to try wrangle a ridiculously convoluted Python codebase and running into exactly the issues you’re describing. I don’t know how or why anyone ships any production software with Python. Sure, it works for quick and dirty one-off scripts, but anything more than that and you run into crazy amounts of untestability and non-determinism.