There's not that much difference in popularity these days. Of projects listed by Freshmeat, Perl is used on 3784 and Python on 3286 ( http://freshmeat.net/browse/160/ ).
A few years ago, Perl had twice as many projects as Python; now it's almost even.