Here attrs = attributes.split(\',\') this gives the value like this in format ["key:value"]. From this value Key should be s
attrs = attributes.split(\',\')
["key:value"]
Key