I guess these things will take a while to shake out, but I'd imagine a python-in-browser-api PEP at some point.