def process_lib_functions(functions_bow):
    """
    Remove bad function names from function bag of words. Specific for Python.
    Removes internal functions and test functions.
    """
    bad_prefixes = ["_", "test"]
    clear_functions_bow = {}
    for k, v in functions_bow.items():
        for bad_prefix in bad_prefixes:
            if k.startswith(bad_prefix):
                break
        else:
            clear_functions_bow[k] = v

    return clear_functions_bow