Here is a basic problem that is causing me much stress: I have a string a = '(1, "abc\\def", 2)' that I would like to convert to a tuple. I have tried eval(), but it interprets the backslashes.