We needed to be able to tie a VendorID/Product ID from a serial port to the device endpoint (aka COM1 or /dev/ttyXXX ) for some work we are doing. To that end, we created some new tools for Linux/Mac/Windows which ties a VendorID and ProductID to a serial port endpoint.
Our project is available at https://github.com/makerbot/pyserial
apologies I don't have time/skill to create a proper patch or diff file, but I think a core developer may do better grabbing our repo, and pulling the relevant code than I would.
The project code was done by Cibomahto and David Sayles, I'm just submitting it on their behalf.