If you installed the developer examples when you installed Xcode 3, you will find on your hard drive many examples of Cocoa programs written in Python and Ruby. You can find the Python examples at the following location:
Developer/Examples/Python/PyObjC
You can find the Ruby examples at the following location:
Developer/Examples/Ruby/RubyCocoa