code: def append(self, element):
          
          try:
              self.root.append(element.root)
          except AttributeError:
              self.root.append(GroupElement(element).root)
docs: Append new element to the SVG figure