Minor changes to work on older versions of yum and python (i.e. on RHEL5)
Add the "newest" option to filter older versions of packages out and refactor majorly