<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def templatesCollector(text, open, close):
 """leaves related articles and wikitables in place"""

    others = []
    spans = [i for i in findBalanced(text, open, close)]
    spanscopy = copy(spans)
    for i in range(len(spans)):
        start, end = spans[i]

        o = text[start:end]
        ol = o.lower()
        if 'vaata|' in ol or 'wikitable' in ol:
            spanscopy.remove(spans[i])
            continue
        others.append(o)
    text = dropSpans(spanscopy, text)

    return text, others