Better Python detection