Create submissions with python?

Hello, I have a problem.

1. What is the issue? Please be detailed.

I am using odk central and I get the data with python to process it and generate reports and it works great.

However, I need to upload old data (which was not in central) and I have not succeeded.

I've tried the API, but it didn't work for me.

Does anyone have an example of how I could upload submissions created in python?

Beforehand thank you very much.