'We need to cook our properties: not all of them are strings by
default, and Gtk\'s models refuse to deal with lists or dictionaries.
Returns a string from a list, a bool, a float, or a string.
DO NOT use for dictionaries'

def cook(self, raw_prop):

    if (type(raw_prop) is list):
        cooked_prop = ','.join([str(p) for p in raw_prop])
    elif (type(raw_prop) is bool):
        cooked_prop = str(raw_prop)
    elif ((type(raw_prop) is int) or (type(raw_prop) is float)):
        cooked_prop = str(raw_prop)
    else:
        cooked_prop = raw_prop
    return cooked_prop
