fixed cmake python checks