I wish I could run Python code in the browser

There used to be a web browser called Grail that could run Python code. I never got to use it but I wish this were possible in Brave. For me this would effectively replace Javascript.
(Of course, for security reasons in-browser Python would need to be restricted compared to normal Python.)