Fixed #22791 -- Invoke interactive questioner only for conflicts in specified apps

need to use `six.iteritems` for Python 3 compatibility.