check python version before run