+1 for python and pycurl. And add in a dose of BeautifulSoup.
I'm not trying to start a religious war, but python is designed from the ground up to be a cohesive and extremely well thought-out language (from the 'formal languages' perspective). Python was OO from the outset, although using that paradigm isn't required.
Keep in mind that PHP is not a general purpose programming language -- it is designed for web scripting. It's simply not as powerful, or as well suited for general purpose programming, as perl, python, C, etc... It is, however, wonderfully suited for web programming.
As far as debugging environments go, Python's is far superior. Python's support for testing, especially automated regression testing, blows away PHP as well.
If I were designing large-scale systems that have to be maintained (and this is exactly what I do), I'd choose Python. I can't imagine developing anything with even moderate complexity with PHP, although people do it all the time.
As is usually the case with languages, there is no right answer.
--Ma