Hi there,
You’re definitely in the right place. 
The best way to send requests from a Python script to Mattermost is to use one of the Python libraries available like this one. That way you don’t have to worry about outputting the request in a way that curl can understand.
Happy to help if you have any more questions!