Got rid of os.popen() by calling a helper function from __virtual__