import re


def sanitized_name(name, wid):
    """Clean an action name and change it to
    proper format. It replaces all the unwanted
    characters with `_`.

    Args:
        name (str): The crude action name.

    Returns:
        str: The sanitized action name.
    """
    return "popper_{}_{}".format(
        re.sub('[^a-zA-Z0-9_.-]', '_', name),
        wid
    )