<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _val_to_str(self, value):
 """Converts the value to a string that will be handled correctly by the confobj :param value: the value to parse :type value: something configobj supports :returns: str :rtype: str :raises: None When the value is a list, it will be converted to a string that can be parsed to the same list again. """

        # might be a list value
        # then represent it 'nicer' so that when we edit it, the same value will return
        if isinstance(value, list):
            # so we have a list value. the default str(v) would produce something like: ['a', 'b']
            # handling such a value is not possible. it should be: 'a', 'b'
            # so we have to convert it to a string but we have to make sure, we do not loose quotes
            # even when values are integers, they get quoted. thats alright. the config obj will parse them correctly
            return ', '.join("'%s'" % str(i) for i in value)
        return str(value)