It looks like pulp does not yet make a generator available to this call, but that is a change we should make in the future. Since it's trivial to support that here, we may as well do so and be ready.