def __init__(self, tag, attr): PhyloXML._check_str(tag, self.ok_tag.__contains__) self.tag = tag self.attributes = attr or [] self.value = ""