def update_with_mod(self, response_headers): RateLimiter.update_without_mod(self, response_headers) if self.next_request_timestamp != self.reset_timestamp: now = time() delta = self.next_request_timestamp - now self.next_request_timestamp = now + delta / FETCHES