detect python with 'which'