PyScript is very cool

If you want to try with WebAssembly to make faster, then this might help:

It should help with the download/startup of the web too, cut in in half too, hopefully.