Remove locals() from virt/vmwareapi package

fixes bug 1171936

Change-Id: I8f5210a46a086f009efaad3733a302aaeb038e5f
Merge "Remove locals() from virt/vmwareapi package"