convert iteritems to list, becoming able to compare values