This should be `for term in o_t:`, but anyway this has quadratic complexity, so you should replace the loop with `result = Add(*o_t)`.