def insert_url(svg, n=12, url='https://www.google.com', urlname='ABCDEF'):
    lines = svg.split('\n')
    template = '<a xmlns="http://www.w3.org/2000/svg" xlink:href="{}" xmlns:xlink="http://www.w3.org/1999/xlink" target="__blank"><text x="150" y="400" font-size="4em" fill="black">{}</text></a>'.format(url, urlname)
    s = ''
    for (il, l) in enumerate(lines):
        if (il == n):
            s += (template + '\n')
        s += (l + '\n')
    return s
def insert_url(svg, n=12, url='https://www.google.com', urlname='ABCDEF'):
    lines = svg.split('\n')
    template = '<a xmlns="http://www.w3.org/2000/svg" xlink:href="{}" xmlns:xlink="http://www.w3.org/1999/xlink" target="__blank"><text x="150" y="400" font-size="4em" fill="black">{}</text></a>'.format(url, urlname)
    s = 
    for (il, l) in enumerate(lines):
        if (il == n):
            s += (template + '\n')
        s += (l + '\n')
    return s