Minor fixes for IP, broadcast and socket initiation

I made some fixes to let Python do it's magic and pick IP and broadcast and fixed two exceptions on platforms without socket.SO_REUSEPORT