ElasticSearch wrapper for flask