def get_district_map():
    jhb_dict = dict(zip(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'Unallocated'], [[x[1], x[2]] for x in all_sub_dists[0:8]]))
    tsh_keys = list(range(1, 8))
    tsh_keys.append('Unallocated')
    tsh_dict = dict(zip(tsh_keys, [[x[1], x[2]] for x in all_sub_dists[8:16]]))
    eku_keys = 'e1 e2 n1 n2 s1 s2 Unallocated'.split(' ')
    eku_dict = dict(zip(eku_keys, [[x[1], x[2]] for x in all_sub_dists[16:23]]))
    sed_keys = 'Lesedi Emfuleni Midvaal Unallocated'.split(' ')
    sed_dict = dict(zip(sed_keys, [[x[1], x[2]] for x in all_sub_dists[23:27]]))
    wr_keys = 'Mogale Rand_West Merafong Unallocated'.split(' ')
    wr_dict = dict(zip(wr_keys, [[x[1], x[2]] for x in all_sub_dists[27:31]]))
    district_map = {'Johannesburg': jhb_dict, 'Tshwane': tsh_dict, 'Ekurhuleni': eku_dict, 'Sedibeng': sed_dict, 'West Rand': wr_dict}
    return district_map
def get_district_map():
    jhb_dict = dict(zip(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'Unallocated'], [[x[1], x[2]] for x in all_sub_dists[0:8]]))
    tsh_keys = list(range(1, 8))
    tsh_keys.append('Unallocated')
    tsh_dict = dict(zip(tsh_keys, [[x[1], x[2]] for x in all_sub_dists[8:16]]))
    eku_keys = 'e1 e2 n1 n2 s1 s2 Unallocated'.split(' ')
    eku_dict = dict(zip(eku_keys, [[x[1], x[2]] for x in all_sub_dists[16:23]]))
    sed_keys = 'Lesedi Emfuleni Midvaal Unallocated'.split(' ')
    sed_dict = dict(zip(sed_keys, [[x[1], x[2]] for x in all_sub_dists[23:27]]))
    wr_keys = 'Mogale Rand_West Merafong Unallocated'.split(' ')
    wr_dict = dict(zip(wr_keys, [[x[1], x[2]] for x in all_sub_dists[27:31]]))
    district_map = {'Johannesburg': jhb_dict, 'Tshwane': tsh_dict, 'Ekurhuleni': eku_dict, 'Sedibeng': sed_dict, 'West Rand': wr_dict}
    return district_map