def get_parentpath(self, sym):
        """ get parent path for a symbol"""
        obj = self._lookup(sym)
        if obj is None:
            return
        out = []
        for s in reversed(self.__parents):
            if s.__name__ is not '_main' or out not in '_main':
                out.append(s.__name__)
        out.reverse()
        return '.'.join(out)
dataset/ETHPy150Open xraypy/xraylarch/lib/symboltable.py/SymbolTable.get_parentpath/swapped operands of `not in`