Fix for python version check