get and set cookie(simplest)

get_cookie("mycookie")
set_cookie("mycookie", "myvalue")
get_secure_cookie and set_secure_cookie and cookie_secret

get your cookie_secret use
import base64, uuid
print base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes)