Let history info command recognize 'last'.
Fix TypeError raised when comparing YumHistoryPackage in Python 3.