Passing container and using ->get() won't work with Symfony by default since services are private.
The \"App\\Tools\\PythonTool\" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.
only way to make it work is to set service public.