def uncamelcase(name, separator='_'):
 s1 = FIRST_CAP_RE.sub(('\\1%s\\2' % separator), name)
 return ALL_CAP_RE.sub(('\\1%s\\2' % separator), s1).lower()

def uncamelcase ( name , separator = '_' ) : s1 = FIRST_CAP_RE . sub ( ( '\\1%s\\2' % separator ) , name ) return ALL_CAP_RE . sub ( ( '\\1%s\\2' % separator ) , s1 ) . lower ( )
converts a string from camelcase into a lowercase name separated by a provided separator .