Why doesn't Python optimize tail recursion? How would you get the same effect?

Technical