def s3_URLise(text):
 output = URLSCHEMA.sub((lambda m: ('<a href="%s" target="_blank">%s</a>' % (m.group(0), m.group(0)))), text)
 return output

def s3_URLise ( text ) : output = URLSCHEMA . sub ( ( lambda m : ( '<a href="%s" target="_blank">%s</a>' % ( m . group ( 0 ) , m . group ( 0 ) ) ) ) , text ) return output
convert all urls in a text into an html <a> tag .