def _index(self, header, same_or_high=False):
        if same_or_high:
            headers = [h for h in self.headers
                       if h.level <= header.level]
        else:
            headers = self.headers[:]
        return headers.index(header), headers
helper method that returns the absolute index
dataset/ETHPy150Open mgaitan/sublime-rst-completion/headers.py/RstHeaderTree._index