This sounds like a pyes wrapper, not pyelasticsearch? But seems like a good change regardless.