UPDATE. SOLVED by bypassing the RequestsHttpConnection
I am trying to create a index using python
from elasticsearch import Elasticsearch,RequestsHttpConnection
es = elasticsearch.Elasticsearch(['192.168.1.226:9200'],
This seems to be giving me a bad status line error. I am not really a python guy but this is all I would have to do anyways to get my code working. What am I doing wrong?