Elasticsearch Create Index Python Function Return