Adding list_pkgs() to rpm.py

Tagging @archtaku.

After a few test runs, it seems that the list_pkgs() function in yumpkg.py is somewhere around 25% faster than this version. However, a yum-free alternative is crucial to rpm.py (and lowpkg in general).