def var_to_name(variable):
    """
    Given a variable of a model, return a name that can be used as an
    atom for the variable name.
    """
    return str(variable).replace('.', '$').replace('[', '$').replace(']', '$')
