I am a stupid guy. It Worked After carefully reading the documentation and Changing the code accordingly. Here is the changed code -
`import requests, hashlib, time
api_sk = "API SECRET KEY GOES HERE"
request_time = int(time.time())
first = str(request_time).encode('utf-8')
second = hashlib.md5()
second.update(api_sk.encode("utf-8"))
second = str(second.hexdigest()).encode('utf-8')
request_token = hashlib.md5()
request_token.update(first+second)
data = {
"request_token": request_token.hexdigest(),
"request_time": request_time
}
response = requests.post("https://PANEL DOMAIN GOES HERE:8888/system?action=GetSystemTotal", data=data)
print(response.content)
`