This repository provides a lot of examples on how to use instruments that support IEEE488.2/SCPI with python 3 using PyVISA. Depend on the instrument you can connect with this trough RS-232, GPIB, USB ...
But I was adapting a program I wrote that uses group_execute_trigger (which btw has bug #929 and pr #930 related to it), which work (with my patched version) with ivi and the NI drivers, with a NI PCI ...