def _uncamelize(self, s):
        ''' Convert a camel-cased string to using underscores '''
        res = ''
        if s:
            for i in range(len(s)): 
                if i > 0 and s[i].lower() != s[i]:
                    res += '_'
                res += s[i].lower()
        return res
def _uncamelize ( self , s ) : res = '' if s : for i in range ( len ( s ) ) : if i > 0 and s [ i ] . lower ( ) != s [ i ] : res += '_' res += s [ i ] . lower ( ) return res
Convert a camel-cased string to using underscores