Fix python detection.