fix python version check