A simple call to eval() will do:
fruits = eval("['apple', 'orange', 'banana']")
fruits
> ['apple', 'orange', 'banana']
Or as explained in this article, the same can be accomplished a bit more safely (meaning: without risking unintended side-effects or malicious code injections) like this:
fruits = eval("['apple', 'orange', 'banana']", {'__builtins__':None}, {})
This solution has the advantage of not depending on additional modules.