Code that I used for a talk on elasticsearch and clients at pyatl.