elasticsearch.py: ES v1 supported.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>