What is better to query elasticsearch from python?
There is nothing wrong with your approach of using the REST API to interface with ElasticSearch.
Pyes and the other libraries provide a wrapper around the REST API so that you can write Python code as oppose to building the JSON queries yourself.