network: Fix some issues reported by pylint:

W: 55,26: Attribute '_addr' defined outside __init__ (attribute-defined-outside-init)
W:  2, 0: Unused import QtWidgets (unused-import)