That is a very good point! Unfortunately, I have chose to use python for various reasons (experience with language, speed to prototype, etc) and as far as I can tell there is no easy way to turn it into a web based form.
Actually Godot (the engine I prefer for game dev) use a very very python like scripting language.
Maybe in a future game you could try it. It has one of the easiest web export that I have seen.
In fact I use the web export in jams during development so other not technical members of the team (artists, sound designers) can easily see their art/audio in game.