What's the correct `content-type` when editing posts?

Please see my post just above this. You can use the json=data instead of the data=data format in your request and the python requests library will take care of the content-type for you and will set it as application/json which is what you should be using.