Interesting. Past few months I also tried bringing the flexibility of Python to the browser. My first attempt was a DSL with a Python wrapper. However in my second attempt I completely got rid of the DSL. I run Python directly in the browser with pyodide. Time to first run is high but it is amortized with more usage. Also open sourced it:
https://pie.tinyvolt.com/