code: def baseoffset(self):
          
          try:
              return self.parent.baseoffset + self.offset
          except AttributeError:
              return self.offset
docs: The offset of this node from the root node.