ucscsdk/ucscgenutils.py
def to_python_propname(word):
    """
    Converts any word to lowercase word separated by underscore
    """

    return re.sub(
        '_+', '_', re.sub(
            '^_', '', re.sub(
                '[/\-: +]', '_', re.sub(
                    '([A-Z]+)([A-Z])([a-z0-9])', '\g<1>_\g<2>\g<3>', re.sub(
                        '([a-z0-9])([A-Z])', '\g<1>_\g<2>',
                        (word, to_safe_prop(word))[is_python_reserved(word)])
                )))).lower()

    Converts any word to lowercase word separated by underscore
    
Converts any word to lowercase word separated by underscore
Converts any word to lowercase word separated by underscore
def to_python_propname(word):
    return re.sub(
        '_+', '_', re.sub(
            '^_', '', re.sub(
                '[/\-: +]', '_', re.sub(
                    '([A-Z]+)([A-Z])([a-z0-9])', '\g<1>_\g<2>\g<3>', re.sub(
                        '([a-z0-9])([A-Z])', '\g<1>_\g<2>',
                        (word, to_safe_prop(word))[is_python_reserved(word)])
                )))).lower()
def to_python_propname ( word ) : return re . sub ( '_+' , '_' , re . sub ( '^_' , '' , re . sub ( '[/\-: +]' , '_' , re . sub ( '([A-Z]+)([A-Z])([a-z0-9])' , '\g<1>_\g<2>\g<3>' , re . sub ( '([a-z0-9])([A-Z])' , '\g<1>_\g<2>' , ( word , to_safe_prop ( word ) ) [ is_python_reserved ( word ) ] ) ) ) ) ) . lower ( )
Converts any word to lowercase word separated by underscore
Converts any word to lowercase word separated by underscore
"""
    Converts any word to lowercase word separated by underscore
    """
word