created training_serializer to handle tuples and frozensets in training json