Detect python python automatically during doc generation