I wonder if you could hit this with emscripten and then run it in a browser. There are other CPython's that have been compiled to webasm, but this one might be more light-weight. Maybe?
There's a nice blog on what Arm did for micro:bit on this:
https://community.arm.com/education-hub/b/rob-leeman/posts/b...
https://github.com/micropython/micropython/tree/master/ports...
But it doesn't provide much more than the basic REPL.
You could also try MicroPython on Unicorn, where more of the hardware is simulated in the browser:
http://micropython.org/unicorn/ https://github.com/micropython/micropython-unicorn
The Unicron-MicroPython kernel is quite old but it's still useful for getting a feel for what's possible.