The target machine running the python application will have three network interfaces available to it. In general all three networks will be vastly different, however there
SO_BINDTODEVICE sounds reasonable, but normally you'll indirectly select a device by what IP address you bind to. More often than that, you'll just bind to '', to bind to all address of the machine.