Fixed iteritems in learner.py