Integrates elasticsearch-py into flask