class MYREALM_securepage(webapp.RequestHandler):

    def get(self):
        if not 'Authorization' in self.request.headers:
            pass
Python/WebApp Google App Engine - testing for user/pass in the headers