def avoid_cpp_keywords(w):
    """Given a string, return the string unless it is a c++ keyword, in which case modify the string.
    """
    keywords = ["typename", "class"]
    if w in keywords:
        return w + '0'
    return w