import re


def convert_to_python_variable(name: str) -> str:
    """
    Creates an identifier that is a valid variable name in Python language.
    """
    # Replace all hyphens with underscores
    name = name.replace("-", "_")
    # Replace invalid characters to underscore
    name = re.sub("[^0-9a-zA-Z_]", "_", name)
    # Remove leading characters until we find a letter or underscore
    name = re.sub("^[^a-zA-Z_]+", "", name)
    return name