def linkify_bounce_url_callback(attrs, new=False):
 attrs['href'] = get_outgoing_url(attrs['href'])
 return attrs

def linkify_bounce_url_callback ( attrs , new = False ) : attrs [ 'href' ] = get_outgoing_url ( attrs [ 'href' ] ) return attrs
linkify callback that uses get_outgoing_url .