def normalize(name: str) -> str:
    """Normalize a value name to a valid Python (PEP8 compliant) identifier.

    Args:
        name: The name of a value returned by MPD.

    Returns:
        The normalized name, in all lowercase with - replaced by _.
    """
    return name.lower().replace('-', '_')