request_uri = 'https://upload.twitter.com/1/statuses/update_with_media.json'
resp, content = client.request(request_uri, 'POST', urllib.parse.urlencode(data))
Python, how to POST statuses/update_with_media to Twitter?