We can't use eval here; it will be both slow and a security risk. If it's a lot of work to create a fast parser in Python (which is might be), maybe we should instead do JSON, with just tuples.