Improvements to fit cookies in a dict for an easier GET and POST