Updated to use the official elasticsearch python client