Python has functions as first-class objects, very simple namespaces (files/folders), generators, and a cleaner syntax not to mention a thriving, growing community, much more helpful/intelligent (at least in my experience) than PHP's.
PHP has a lot of coders that are one step about script-copy-pasters.
PHP has a lot of coders that are one step about script-copy-pasters.
No questions about it - Python is the way to go.