'Serializes the list of activities
:param activities: the list of activities'

def serialize_activities(self, activities):

    serialized_activities = {}
    for activity in activities:
        serialized_activity = self.serialize_activity(activity)
        serialized_activities[self.activity_to_id(activity)] = serialized_activity
    return serialized_activities
