Update vmware_snapshot_tool.py

optimizing code