python restore to elasticsearch