def str2list(string): return string.split(",") def list2str(mylist): s = ",".join(mylist) return s