Why not just retrain the python team to another language? I mean, software engineers are not really language specific, they can learn other languages if needed.
One of the rumors is that the better compensated you are on your level, the more likely you are to be targeted for layoff, because it saves the eng cost the most.