code: def copy(self):
          
          copyClass = self.copyClass
          if copyClass is None:
              copyClass = self.__class__
          copied = copyClass()
          copied.copyData(self)
          return copied
docs: Copy this object into a new object of the same type.
          The returned object will not have a parent object.