check python version before call os.popen