fix python version issue and windows issue