def classify_marked_tagnames(tagnames):
    """splits tagnames into two lists: those that have
    a '*' in the end and those that don't"""
    pure_tags = list()
    wildcards = list()
    for tagname in tagnames:
        if tagname.endswith('*'):
            wildcards.append(tagname)
        else:
            pure_tags.append(tagname)
    return pure_tags, wildcards
