def _reverse_normalize_function_name(function):
    """
    Given a Python funciton name, convert it into a C++ function name.  For
    example "set_positions" becomes "SetPositions".
    """
    
    name = function[0].upper()
    next_upper = False
    for l in function[1:]:
        if l == '_':
            next_upper = True
            continue
        name += l.upper() if next_upper else l
        next_upper = False
    return name