def contains_pept(name):
    """Checks if the saccharide name contains the peptide fragment,
        such as EES, GS, SA etc"""
    contains_pept = False
    for pept_stub_name in ('_E', '_G', '_S', '_A'):
        if (pept_stub_name in name) and ('_NRE' not in name):
            contains_pept = True
    return contains_pept