def __checkSPKTimestamp(self):
        """
        Check whether the SPK is too old and generate a new one in that case.
        """

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