It is ugly as hell and some regex ninja would be able to achieve this using half of the symbols but seems to work:
import json
import re
def parse(v):
# Remove newlines and replace "=" with ":"
v1 = v.replace('=', ':').replace("\n", "")
# Enclose strings in double quotes
v2 = re.sub(r'(\d*[a-zA-Z][a-zA-Z0-9]*)', r'"\g<1>"', v1)
# If you want booleans
v3 = re.sub(r'"(true|false)"', r'\g<1>', v2)
# Create lists
return json.loads(re.sub(r"{([^:]+)}", r'[\g<1>]', v3))