def underscore(text):
 return UNDERSCORE[1].sub('\\1_\\2', UNDERSCORE[0].sub('\\1_\\2', text)).lower()

def underscore ( text ) : return UNDERSCORE [ 1 ] . sub ( '\\1_\\2' , UNDERSCORE [ 0 ] . sub ( '\\1_\\2' , text ) ) . lower ( )
convert dots to underscore in a string .