def format_pylist_to_mathematica_legend(labelname_syntax, pylabel_list):
    """ 
    Helper funciton. convert python list to be mathematica list for the legend
    
    Parameters
    -------------
    labelname_syntax : str
        label type syntax in the Wolfram Mathematica .
    pylabel_list : list
        the list of names in python 
    
    Returns
    -------------
    labels : str
        Mathematica syntax 
    """
    labels ='%s -> %s' %(labelname_syntax, pylabel_list) 
    labels = labels.replace("'", "")
    labels = labels.replace("[", "{")
    labels = labels.replace("]", "}")
    
    return labels