The Python container should only some basic libraries, Python, and that's it.And since the versions of some software in the container changes, this has to trigger a full test cycle. Oh wait, with CI/CD, we no longer test software.
I hope you can hear the sarcasm in the above statement.
Ideally all software should have unit tests, functional & integration tests.