yum query/yum-dump.py fails when a locally-compiled Python is in $PATH