def __init__(self): cherrypy.Tool.__init__(self, "on_start_resource", self._check_method, priority=10)