This is actually exactly what Pyodide does! It's basically the CPython interpreter compiled to wasm. This will allow you to run python code in, say, NextJS.