code: def __checkSPKTimestamp(self):
          
  
          if time.time() - self.__spk["timestamp"] > self.__spk_timeout:
              self.__generateSPK()
docs: Check whether the SPK is too old and generate a new one in that case.