if it exists return the second element of the result, if not, return alternate. define the method set_cookie with 9 arguments: self, key, value set to an empty string, max_age set to None, expires set to None,
def set_cookie ( self , key , value = '' , max_age = None , expires = None , path = '/' , domain = None , secure = False , httponly = False ) :