I have a Python 2.7 program with Pygame 2.7 which I wanted to embed into a website. How would you do this?
You wouldn't. Pygame isn't a web based technology for games. If that's one of your main platforms, look into HTML5 based frameworks instead (or a platform that can export its runtime and content to HTML5).
How do you embed a Python 2.7 game requiring pygame into a website?