It accesses self.request which does not exist.
I propose removal of this method: the iteration would be the responsability of the developer.
@get('/logout')
def logout(request):
response = Response("...")
for name in request.cookies:
response.clear_cookie(name)
return response