An USB device has some descriptors and based on them we could find out information about that connected device.
But here comes a problem, what if a device tells us it is what he is not (like a HID device). Well, in that case the driver would be automatically loaded and someone could have access to our computer.
Lucky for us, we can manually “unload a driver” using the unbind special file. Unload a driver is not specifically a correct term, you do not really unload it, but you unbind the device from that driver.
By simply writing (could use echo) the bus id of the device to that file, would cause the device to not be usable.
To make it usable again, simply write the same bus id of the device to the bind file.
By simply doing this, you could play with the device and allow it to be seen or not by your PC.
This could be easily implemented in Python, simply opening the bind/unbind file and writing in it a specific bus id.