The problem is sorted out. In OpenSesame, labhackers needs to be imported as:
pip install psychopy-labhackers import psychopy.hardware.labhackers