Add type(addr) = bytes support to isIPAddress and isIPv6Address

Added tests for isIPAddress
Port twisted.web.client.Agent functionality to Python 3
Port twisted.web.client.downloadPage to Python 3