Incorporate electric shocker in fear conditioning experiment

Hi all,
I am trying to build a fear conditioning experiment using PsychoPy, and I have a Biopac device (model EL258RT) to deliver the electric shock to certain stimuli. Does anyone know how to incorporate this shocker to pair the shock with certain stimuli, using python codes? Any inputs would be greatly appreciated!