human
Complete this python program:
def fix_links(data, proxy_url, host_url):
assistant
#Here is the Python code you requested.

    """>>> fix_links("><img src=images/hp0.gif width=158", \http://127.0.0.1:8088\, \www.google.com\)
    \><img src="http://127.0.0.1:8088/www.google.com/images/hp0.gif" width=158\
    """
    def fix_link_cb(m):
        url = m.group('url')
        if ('://' in url):
            result = (((m.group('before') + '"') + join(proxy_url, url)) + '"')
        else:
            result = (((m.group('before') + '"') + join(proxy_url, host_url, url)) + '"')
        return result
    data = _link_re_1.sub(fix_link_cb, data)
    data = _link_re_2.sub(fix_link_cb, data)
    return data