make sure llvm finds python >= 2.5
Added logical indexing to subarrays. Fix #4763