Parsing cookies into a dictionary