Facebook has an interesting talk about how much electricity 1% performance improvement saves.
If it is trying to process ML data, or running in some cloud provider, or deployed in some IoT device supposed to run for years without maintenance, then maybe yes.
And precisely, for ML code all python libraries run extremely optimized natively compiled code. The language overhead is a minimal consideration. And for business domain code language performance is rarely the limiting factor.
Are you suggesting that accounting only cares about the AWS bill but not at all about the salary of developers?
Includig a couple that are as dynamic as Python.