Fix .iteritems() access in flask.sessions