def find_handler_request(self, request_path):
    for (path, handler) in self.routes.items():
        parse_result = parse(path, request_path)
        if (parse_result is not None):
            return (handler, parse_result.named)
    return (None, None)
def find_handler_request(self, request_path):
    for (path, handler) in self.routes.items():
        parse_result = parse(path, request_path)
        if (parse_result is not None):
            return (handler, parse_result.named)
    return (None, None)