Python sets don't allow duplicates. So, you can construct a set of unique categories, using set comprehension, like this
unique_categories = {item.strip() for row in cur for item in row[1].split(",")}
For example,
a = "food, drink, vege"
print {item.strip() for item in a.split(",")}
Output
set(['food', 'drink', 'vege'])
You can iterate a set, like a list. But, if you want to convert it to a list later on, you can use list
function like this
unique_categories = list(unique_categories)