Python Check If Any Value In Array Is Contiguous