def reverse_map(k_map):
    """
    Return the reversed map from k_map

    Change each 1 by 0, and each 0 by a 1
    """
    
    r_map = []
    for line in k_map:
        r_line = []
        for case in line:
            r_line.append(not case)
        r_map.append(r_line)

    return r_map