bin/yum-printbuilddep: Fix python-2.4 compatibility

Make it work on CentOS 5.