fix for py3
use an UDP socket to notify