class Type:

    @classmethod
    def str_to_list(xcls, str_object):
        list = map(str.strip, str_object.split(','))
        try:
            list.remove('')
        except ValueError:
            pass
        return list

    @classmethod
    def list_to_str(xcls, list_object):
        return ', '.join(list_object)

@@ -316,8 +316,460 @@
 object)%0A
+%0A    @classmethod%0A    def str_to_bool(xcls, str_object):%0A        if str_object == %22yes%22 or str_object == %22on%22 or str_object == %22true%22:%0A            return True%0A        elif str_object == %22no%22 or str_object == %22off%22 or str_object == %22false%22:%0A            return False%0A        else:%0A            raise TypeError%0A%0A    @classmethod%0A    def bool_to_str(xcls, bool_object):%0A        if bool_object:%0A            return %22yes%22%0A        else:%0A            return %22no%22%0A

Add type 'bool'