Trigger markers in iMotions through Psychopy (Connect to iMotions API)

Hello,
I’m creating an experiment where the participant goes through a psychopy experiment. During the experiment, the participant wears an EEG headset (connected to iMotions).

I’m trying to find a way to create range marks on my EEG data (in iMotions) during the experiment. I want to trigger those markers every time a new routine/loop starts in Psychopy.

I found that iMotions has an API, but I couldn’t figure out how to integrate it into Psychopy. I also found this blog explaining How to use iMotions with e-prime, Psychtoolbox and PsychoPy but I couldn’t make sense of it. Maybe someone more knowledgeable will be able to lend a hand.

Any help will be appreciated.
Thanks, and Merry Christmas!

I’m trying to do the same, any suggestions for this part?

Has anyone made advances on this topic? Does anyone have an example PsychoPy script that interacts with iMotions?