added various input cases from command line

Did preliminary research on parsing nested parenthesis; use a stack or
pyparsing