Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithMyself, I would use this:
x="(1,2,3,4,5,6,7,8,9)" # put the text in a string
s=x.replace("(","").replace(")","") #remove parenthesis
t=s.split(",") # split by commas
emit t[3] as MyValue #lists start indexing at 0 - [3] is the 4th element