As it turns out, there are a bunch of ways to get Python source code to run inside a browser, after a little reading I decided to give Brython a go .. it's promise of Python3 was too much to resist in the face of multiple Python 2 options.
Turns out it's almost too easy, I think I might need to spend a lot more time on it before considering it a done-deal, however a relatively short session yielded some fairly impressive results.
The repo is here; My Brython demon on Github
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/html"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="js/brython.js"></script> <script src="main.py" type="text/python"></script> </head> <body onload="brython()"> </body> </html>
Then in main.py;
print('Hello From Python!')
And you're off!
There's a little more in the demo if you're interested, specifically a little with classes, inheritance and integrating with pre-existing JS libraries / modules .. looks cool tho'! :)