The "submit" method in splunklib.client.Index class is using HTTP simple receiver REST route and not HEC routes.
You can write your own HEC method or use this one. https://github.com/georgestarcher/Splunk-Class-httpevent
You can write your own HEC method or use this one. https://github.com/georgestarcher/Splunk-Class-httpevent