def standardize_name_from_dict(candidate):
    district = ""
    if candidate['cand_office'] != '00':
        district = "-%s" % candidate['cand_office_district']
    return "%s - %s (%s: %s-%s)" % (candidate['cand_name'], candidate['cand_pty_affiliation'], candidate['cand_office'], candidate['cand_office_st'], district)

# We should have been given a last name to block with. We should probably block by
# something less restrictive (this fails on incorrectly formatted names, i.e. "ron, 
# paul") but... 
# cycle must match a string, not an int, eventually
dataset/ETHPy150Open sunlightlabs/read_FEC/fecreader/reconciliation/fec_reconciler.py/standardize_name_from_dict/original