Python Set Maximum Recursion Depth