Parenthesis Checker Using Stack In Python