You can control USB hub port power feature and view port statuses by this script.
usage: hub-port-controller.py [-h] [-s HUB_SERIAL_NUMBER] [-v USB_VERSION]
[-p PORT_NUMBERS] [-d]
hub_id_vendor hub_id_product
# Restart USB Devices
sudo python3 0x2109 0x3431 -p [1,2,3,4]
# Display Port Statuses
sudo python3 0x2109 0x3431 -d
pyusb
Copyright (c) 2020 S.K. Technology Firm, @GuriTech
Released under the MIT License