P3K: fix cookie parsing under Python 3.x (+ duplicate import is removed)
Merge pull request #2796 from kmike/cookie-fix

py3k: fix unicode/bytes cookie parsing under Python 3.x