Removed redundant parentheses from brentq calls
Typo in tee.py