Just realised that it needs a HTML5 game. I dont think pygame can do that. Any suggestions of html-izing a pygame?
if you can export Mac/Linux just incase anyone is using another OS, that can work.
Now it's old but I know someone made an HTML5 module that you could use to export to HTML5.
I decided to go with godot instead. It was quite a learning experience :)