Why is Python's string case conversion function using JavaScript's function names?

I was stuck on Vision of Ogres for days because I keep trying to use lower() function to do case conversion in Python instead of toLowerCase().

This is confusing as hell. Why is the sandbox Python language using JavaScript’s language syntax instead of its own? If it’s Python, then it should behave in Python’s way and everything should be in Python syntax (for example, the for/while loop and range syntax). This literally makes no sense.

The same incorrect behaviour is also seen in Loud Quietness, and probably also a few other levels.

So you think its a bug? If it is post it on Github