turning string with embedded brackets into a dictionary,"print(dict(re.findall('\\{(\\S+)\\s+\\{*(.*?)\\}+', x)))"