You would normally be able to solve things like this via file permissions in the OS but currently we are running everything as root inside a container.
Not really, because the dependencies to your python code often have access to all global variables and/or run at same permission level as all your code etc.