py3 fix: dict.itervalues() doesn't exist