Refactor, port to use elasticsearch python package instead of pyes. This package's external API should be almost exactly compatible (if not completely).
Add Python 3 compatibility