JavaScript is way more ubiquitous thanks to Electron, which is not so great for the end users.

I have little experience, but I somehow doubt that Python will improve a lot regarding resource usage compared to Electron... but great if it works for you.

You'd be surprised. But you're comparing a browser to an interpreter, so it's already apples and oranges.