Does sys.setrecursionlimit help at all?
https://docs.python.org/3/library/sys.html#sys.setrecursionlimit
Does sys.setrecursio nlimit help at all?
https:/ /docs.python. org/3/library/ sys.html# sys.setrecursio nlimit