def initialize(cls):
        """
        Initialize pypm if not already initialized.
        """
        if cls.initialized:
            return
        pypm.Initialize()
        cls._gatherDeviceInfo()
        cls.initialized = True