def _reorder_bytes(self, icon_bytes):
        """
        Method loops over the array and reverses every
        4 bytes (representing one RGBA pixel).
        """
        arr = bytearray(icon_bytes)
        for i in range(0, len(arr), 4):
            arr[i : i + 4] = arr[i : i + 4][::-1]

        return arr

        Method loops over the array and reverses every
        4 bytes (representing one RGBA pixel).
        
libqtile/widget/helpers/status_notifier/statusnotifier.py