Change getaddrinfo signature to PY3 only because PY2-version takes no keyword argument.
Handle reraise in PY3