Fix python version check.