improvements in two main utils
rewrite ndeletevms in Python