Qemu.test: make nic_hotplug support RHEL4, RHEL5 guest

This patch make nic_hotplug support RHEL4, RHEL5 guest, also modify
the code style to follow pep8 rules.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>