> That would be a total security nightmare and hopefully it's never going to happen.
Why? You're assuming a lot of things about a hypothetical implementation that is going to have heavy restrictions on in anyway since it's running in the javascript sandbox.
I'd be happy enough with serving .py files with the exact same restrictions and privileges that JS libraries have now.