cookies.py now fits in with the new arguments, and works better.