import re def split_list(string): return re.split(",\\s+|\\s+,\\s*|:", string)