def grab_data(year, rcvote):
    link = 'XXX/%s/roll%03d.xml' % (year, rcvote)
site = urllib.request.urlopen(link)
Python: loop doing the same thing to one item n-times as opposed doing it once to n-items