I am moving this to https://github.com/am-napier/its.py, don't use this version anymore.
Splunk ITSI script for simple REST calls