I have a text file which contains the following texts,
... a= {\' x \': \' [a,B,3],[b,C],[c,1],[A,2] \'}, {\' y \': \' [p,w,1],[a,o,2],[s,r,3],[s,d]