Replacing clunky construct with pyparsing's operatorPrecedence