def decamel(string):
    """"Split CamelCased words.

    CamelCase -> Camel Case, dromedaryCase -> dromedary Case.
    """
    regex = re.compile(r'(\B[A-Z][a-z]*)')
    return regex.sub(r' \1', string)
Split CamelCased words.

    CamelCase -> Camel Case, dromedaryCase -> dromedary Case.