Republicans and Democrats are scrambling across the country to revisit the maps and district lines that will shape the political battles ahead in the midterms.