net/connect.py: s/family/prefer_ipv6/

The `prefer_ipv6` parameter is what is used by the current
implementation of connect (utils_net.py + connector.py).
net/connect.py: prefer `endpoint` to `hostname, port`

The `endpoint` parameter is what is used by the current implementation
of connect (utils_net.py + connector.py).