python: Simplify connectPorts() around EtherObject/EtherDevice.