This seems a bit awkward (the `if ... continue`) part; I don't expect a function named `port_*` to return anything, and then it does return a dict which gets discarded... it's just weird. I think it might be better to just port all the cookie settings en masse rather than down in the loop like this.