Moving a generator pagination feature over from pulp_rpm

Improving an unused manager method to turn an iterable of unit keys into a generator of unit IDs