While perusing the interwebs I came across an interesting thread regarding Python advantages over PHP.
I have to agree with the general consensus there; that Python is more compact and easier to read. I think the choice quote there is:
I have come to hate PHP now, it's pseudo-OOP is awful, it's dog slow at handling XML, it's so easy to use that most of the programmers I've had contact with are very sloppy and do things like extract($_GET); or put database usernames and passwords in index.php. I also have to agree that php.net/manual seems to be the main reference that coders use - which is not good if the comments are wrong!
Maybe I'm just biased because PHP started as a web development language and Python as a programming language.
The final run-down is here... The web framework comparison is missing Django, but the post looks kinda old anyway.

python-vs-php/add_comment