virttest: Some minor fix for utils_net.py

Fix error of referenced before defined.

Signed-off-by: Shuping Cui <scui@redhat.com>