Fix some py3 transition issues (connection.address.host -> connection.address[0])