Update elasticsearch.py