use iter() to replace .itervalues()

for python3