def _equation_checker(equation):
    '\n    Check equation for balanced parentheses\n    '
    return (equation.count('(') == equation.count(')'))
Check equation for balanced parentheses
def _equation_checker(equation):
    '\n    \n    '
    return (equation.count('(') == equation.count(')'))