Set Maximum Recursion Depth Python