Well I've never used RenPy, but if it's open-source I'm sure I could find out. Whatever it uses, it must sound better than PyGame if you use it on the Pi...
But what about other languages, then? I know C, C++, C#, and others. so I'm not gonna limit myself to just Python.