Py3k version of ESClient