Programmatically upload Couchbase logs

Hi,
We wanted to automate the uploading of Couchbase logs(on request basis) to https://uploads.couchbase.com. We want to write a python that will export the logs into a file and then another python will automate the upload of that log file to the couchbase upload site. How do we interact with the couchbase upload site through a python program