import re


def to_varname(string):
    """Converts string to correct Python variable name.
    Replaces unavailable symbols with _ and insert _ if string starts with digit.
    """
    return re.sub(r'\W|^(?=\d)','_', string)