def get_id_pairs(track_list):
    """Create a list of (sid, eid) tuples from a list of tracks. Tracks without an eid will have an eid of None."""

    return [(t["id"], t.get("playlistEntryId")) for t in track_list]