def _precinct_xls_extension(self, election):
        year = election['start_date'].split('-')[0]
        if int(year) >= 2014:
            return "xlsx"
        else:
            return "xls"
Get the file extension for an election's precinct-level Excel files
dataset/ETHPy150Open openelections/openelections-core/openelex/us/ia/datasource.py/Datasource._precinct_xls_extension