'Utility function for lower levels to chose either serialize'

def activities_to_ids(self, activities_or_ids):

    ids = []
    for activity_or_id in activities_or_ids:
        ids.append(self.activity_to_id(activity_or_id))
    return ids
