python for sure. you can use it with app engine, whereas ruby on the app engine jvm is less mature.
take a look at some source code here to help you get started:
http://developeradvocate.appspot.com/id/1005/AppEngineBlog-(...
http://code.google.com/p/appengineblogsoftware/source/browse...