That third line will cause an exception in Python. Looks like strong typing to me.
Back to the topic of getting Python running under OSX though.
I just installed Fink, apt-get'd my way to Python 2.2, manually installed MySQL and PostgreSQL.
After that - I just compiled/installed MySQLdb and pyPgSQL.
Not a really big deal. It takes a couple hours to get everything compiled and built, but hey - I'm not at all uncomfortable with gcc so maybe that's where the rub is.
On the other hand, it could just be that whole inertia thing where you get used to the way a particular tool chain works and you get frustrated because it's new and different.
In other news - I'm making some pretty cool progress with PyObjC in my spare time. I'll probably be releasing some simple sample apps soon - maybe it'll help someone out.
I have to say that I'm having much less trouble coding in Python than in pure Objective-C. Call me a weeny, but I like having endless numbers of namespaces in Python. As much as I like Objective-C, the lack of an equivalent of packages in Java or modules in Python makes it really hard for me to organize my classes.