Update elasticsearch.py

nodes states  should be  /_nodes/_local/stats now