Rework instances of iteritems to be compat. with Python 3.
Bring in recent galaxy-central fixes to lwr.managers.util.