os.popen is deprecated since 2.6, use subprocess module