def to_node(self): node = Group.to_node(self) # Add the extra information to the XML tag to help parsing to # the object from XML. node.setAttribute(SVGENESIS_TYPE, 'EvilEye') return node