Just in case you have an older version of Python ...
test_text = "dog,cat,bird,good,bad,blah1,blah2,blah3"
# let's save the test text to a file ...
fname = "aatest.txt"
fout = open(fname, "w")
# now you can read it back and print it ...
fin = open(fname)
text = fin.read()
for word in text.split(','):
''' result ...