> There is a school of thought that you should use the right tool for the job
But there are often real world constraints that influence the choice of the tool. For example if you have a Rails app already, going with more Ruby code might fit better than branching out to Python or Julia.
> and some languages are better tools for certain tasks.
Yes, although in the case of Python, it's not the language that is better but the eco system support.