def some_function(self):
    if data['user'].new_user and not self.request.path == '/main/new':
        self.redirect('/main/new')
return True
return False


class Dashboard(webapp.RequestHandler):

    def get(self):
        if some_function(self):
            return
self.response.out.write('Some output here')
How can I kill off a Python web app on GAE early following a redirect?