I used to hate web frontend development. But now I’m realising I just hate JavaScript. Python is also interpreted meaning it can be hosted in a sandbox, also dymically typed, has dicts which baiscally use JSON syntax, supports multiple paradigms, etc. Instead of a language whose creators probably said “let’s make this language we named after Java a million times worse than Java”
There have been attempts. With WebASM. There’s even an interesting compiler for it. Not super fast, but potentially useful. Good luck with gaining traction though. https://wasmer.io/posts/py2wasm-a-python-to-wasm-compiler