Validate MAC in virt.py

With the validate func in 01eb5f5.