If you want to retain good synchronisation between your eye tracking data and what is displayed on the screen and are dead set on using
tobiicontroller.py, one option could be to re-build the youtube page you want people to look at in psychopy, using
TextStims from the psychopy visual module:
However, generally I think your best bet is to not use psychopy. Tobii Studio is good for recording eye tracking data on top of websites:
Apologies if that’s not what you want - I know how annoying it is when people suggest different software when you plan on using a specific thing. But if you want people to interact with a website (not something psychopy can do) and record data with
tobiicontroller.py (not something you need psychopy for) then maybe psychopy isn’t suited for your experiment.