Allow changing the Cookie class
Fix pyflakes warning

"list comprehension redefines 'value' from line 869"