def underscore_targets(targets):
    """ Takes in a list of targets and prefixes them with an underscore if they do not have one.
    """
    result = []
    for target in targets:
        t = target
        if target[0] != '_':
            t = '_' + t
        result.append(t)
    return result