import re


def convert_to_lowercase_and_underscore(name):
    """
    The Shared Memory is in CamelCase - convert the names to Python Standard lowercase with underscores
    http://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-camel-case

    I have already changed the names in sim_info.py, so this function is no longer used
    """
    s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
    return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()