def init_sim(sim, data, cid):
    """ Loads a world into a client and returns an sim map

    :param sim: A `Sim` class
    :param data: json-serialized scene data to be parsed by `sim`
    :param cid: The client id to using for `sim`
    """
    s = sim(data, cid)
    return s.serialize()