What is the simplest way to convert a string of keyword=values to a dictionary, for example the following string:
name=\"John Smith\", age=34, height=173.2,
do it step by step
d={} mystring='name="John Smith", age=34, height=173.2, location="US", avatar=":,=)"'; s = mystring.split(", ") for item in s: i=item.split("=",1) d[i[0]]=i[-1] print d