pyparse - String parsing to generate Where clause : I have a string that looks something like this - 

((COL1==VAL1)+(COL2==VAL2))

I want t convert this to following format:

((a.col1 == 'VAL1') & (a.col2 == 'VAL2'))

Another example - 

From: ((COL1==VAL1)|(COL2==VAL2/A))

TO: ((a.col1 == 'VAL1') | (a.col2 == 'VAL2/A'))

can someone help please?