Python Set Max Recursion Depth