Python3 fix: Implement __hash__ method for Value class