def embed (active, dimensions=3):
    """Embeds a two dimensional mapping of active coordinates in, and
    returns, a higher dimensional mapping, e.g.:

        embed( {(x, y): True}, dimenions=3) -> {(x, y, 0): True}

    """
    return { coord + ((0, ) * (dimensions - 2)): True for coord in active }