Itervalues doesn't exist in python 3, use values which is also python 2 compatible