I am writing a boolean expression analyzer using PyParsing, I got the pyparsing.ParseResults class which looks like this: [[[[[\'A1\'], \'and\', [\'not\', [\'B2\']], \'