Replacing `items` with `six.iteritems` here should be safe. It's just appends the values on an other list and checks if `search_string` is present. It can be optimized later with the use of the iterator.