fix a bug about virt-what and not being root

plus, there is very little refactoring, according to pep8 + pyflakes