code: def _update_callsafety(self, response):
          
          if self.ratelimit is not None:
              self.callsafety['lastcalltime'] = time()
              self.callsafety['lastlimitremaining'] = int(response.headers.get('X-Rate-Limit-Remaining', 0))
docs: Update the callsafety data structure