I find it amusing that you mention Pygame, because it's a wreck with horrible performance due to software rendering, it has bad tutorials, inadequate documentation, and last time I checked had 32-bit/64-bit issues.
Source: Personal experience porting a multiplayer 2D game
Edit: By contrast, JavaScript (well, CoffeeScript) and the DOM was a much nicer experience.
Source: Personal experience porting a multiplayer 2D game
Edit: By contrast, JavaScript (well, CoffeeScript) and the DOM was a much nicer experience.