How to check if an index exists in elasticsearch using a python script and perform exception handling over it? How to check if an index exists in elasticsearch using a python script and perform exception handling over it? python python