Updated script votes.py according to the new API. Output to CSV, upload with another script.