Create document via SMS and API

Hello,

I am currently working on a project to create a document from an SMS.
Our SMS gateway provider will forward all inbound SMS to the URL we provided, https://<sitename>/api/resource/<doctype>.

My problem is that some parameter names (keys) used by our provider in sending the data are not all in lowercase letters (ex. segmentCount, segmentNumber, referenceNumber, messageID, submitTime) resulting to data not being saved to the document.

Since Python is a case sensitive programming language, is there a way to convert all the keys to lowercase letters?

Thanks in advance.