code: def itervalues(obj):
      "Get value iterator from dictionary for Python 2 and 3"
      return iter(obj.values()) if sys.version_info.major == 3 else obj.itervalues(f itervalues(obj):
      "Get value iterator from dictionary for Python 2 and 3"
      return iter(obj.values()) if sys.version_info.major == 3 else obj.itervalues()
docs: Get value iterator from dictionary for Python 2 and 3