How do I convert this string which is a list into a proper list?
mylist = \"[\'KYS_Q5Aa8\', \'KYS_Q5Aa9\']\"
I tired this but its not what
you can use json library and it's more efficient than eval.
import json mylist = "['KYS_Q5Aa8', 'KYS_Q5Aa9']" mylist = json.loads(mylist.replace("'",'\"'))