Preverite in spremenite omejitev rekurzije v programu Python (npr. sys.setrecursionlimit) https://sl.from-locals.com/python-recursionlimit/