python version check fix