This talk benefitted from discussion, assistance and code from a number of sources. In particular I'd like to thank the following specifically:
Jeff Johnson
Jeremy Katz
Adrian Likins
Gustavo Niemeyer
Seth Vidal
Everyone on rpm-python and rpm-list and #rpm