If you're wanting to use Python, it's probably PyGame. If you don't care, I've had a great time with Phaser.js (www.phaser.io) when it comes to HTML5. It's intuitive and the project is pretty active (and seems to be picking up speed).
I second Phaserjs. I switched for my Ludum Dare attempts and it's been great to work with. PyGame's distribution story for events like Ludum Dare was pretty horrible.