transaction: bring rpmtrans.py into a shape where transactions can be tested.