r = api.request('statuses/update', {'status': 'Test', 'media_ids': media_id})
print('UPDATE STATUS SUCCESS' if r.status_code == 200 else 'UPDATE STATUS FAILURE')
Python tweet multiple images Twitter API