import re


def make_label(name):
    """Make the changes in names suitable for using as label in RST : remove < > ..."""
    r = re.sub('<','LT', name)
    r = re.sub('>','GT', r)
    r = re.sub('[\.]','_',r)
    r = re.sub('::','__', r)
    r = re.sub(',','_', r)
    return r