def strip_py_dirs(self, path):
        """strips python path prefix like /.../site-packages, and /.../lib/python3.8 if any matches"""
        for prefix in self.py_dirs:
            if path.startswith(prefix):
                return path.replace(prefix + "/", "")
        return path
strips python path prefix like /.../site-packages, and /.../lib/python3.8 if any matches
debug/NicerTrace.py