def attributes_strToDict(astr_attributes, astr_separator="<STR_LIT:U+0020>"):
adict = {}<EOL>alist = str2lst(astr_attributes, astr_separator)<EOL>for str_pair in alist:<EOL><INDENT>alistTuple = str2lst(str_pair, "<STR_LIT:=>")<EOL>adict.setdefault(alistTuple[<NUM_LIT:0>], alistTuple[<NUM_LIT:1>].strip(chr(<NUM_LIT>) + chr(<NUM_LIT>)))<EOL><DEDENT>return adict<EOL>
This is logical inverse of the dictToStr method. The <astr_attributes>
string *MUST* have <key>=<value> tuples separated by <astr_separator>.