2.6 doesnt have subprocess.check_output, revert to os.popen3