def filter_sessions_by_room(sessions, room):
    """only keep sessions within the room <room>

    Args:
        sessions: list of tuples
        room: str

    Returns: filtered sessions as list of tuples

    """
    return [
        [session[0].split(":")[0], session[1], session[2]]
        for session in sessions if session[0].endswith(room)
    ]