import string


def _xlate_from_camel_case(key):
    """Convert example: startDate -> start_date """
    new_key = ""
    for char in key:
        if char in string.ascii_uppercase:
            new_key += "_" + char.lower()
        else:
            new_key += char
    if new_key.startswith("_"):
        new_key = new_key[1:]
    return new_key