Earlier quoted context omitted.
I feel that Python will be known in the future as the language that caused a generation to have a crippled sense of reasoning about how to design computer programs. It's lack of a normal, standard scoping model alone teaches a very flawed reasoning about computer programs.
I'd vote for Javascript over Python.
There are many languages which hammer worse practices than either such as POSIX shell scripts, but they are seldom used as a teaching language.
Python is in the unique space of having made horrible design decisions but somehow often used as a teaching language.
One would assume that programmers are to understand such concepts as block scoping rules and the difference between lexical and dynamic variables. — how is Python to teach them that?