Handles attached events from USBDevice.start_detection().

def handle_attached(sender, device):
    """
    Handles attached events from USBDevice.start_detection().
    """
    # Create the device from the specified device arguments.
    dev = create_device(device)
    __devices[dev.id] = dev

    print('attached', dev.id)