Python is in a larger bind because it only has function scoping and variable declaration is implicit. It does not have sub-function scopes.
So does not really have a good way to fix the issue, even by using a different keyword as JS did.
OTOH default parameters being evaluated at function definition make mitigating it relatively simple.