Massive lines like these were the culprits when I got a similar problem. Something - dunno if it's Python, pygame, or SDL - breaks when you try to complete a string and load an image from it and convert it at the same time. Break them up and it will probably work.
Kris Appeaser of snakes