TweetTweetJam games need to be built in a text editor, without access to sprites, music or external files (with only 560 characters of code). I'm not familiar with Pygame, but if your concept fits these rules, go for it!