def camel_to_underscore(name):
 import string
 for c in string.ascii_uppercase:
  name = name.replace(c, ('_%c' % c))
 return name.strip('_').lower()

def camel_to_underscore ( name ) : import string for c in string . ascii_uppercase : name = name . replace ( c , ( '_%c' % c ) ) return name . strip ( '_' ) . lower ( )
convert camelcase style naming to underscore style naming e .