def find_upname_positions(input_data, replace_w_these):
    """ Finds the positions at which to do replacements. """
    for iline, line in enumerate(input_data):
        for replace_this, with_this in replace_w_these.items():
            for iword, word in enumerate(line.split()):
                if replace_this == word:
                    yield (iline + 1, iword), with_this
