Returns a list of all the usb devices matching the provided vendor ID and product ID.

def get_all_usb_devices(idVendor, idProduct):
        """ Returns a list of all the usb devices matching the provided vendor ID and product ID."""
        all_dev = list(usb.core.find(find_all = True, idVendor = idVendor, idProduct = idProduct))
        for dev in all_dev:
            try:
                dev.detach_kernel_driver(0)
            except usb.USBError:
                pass
        return all_dev