import ast

with open('filename.txt', 'r') as f:
    mylist = ast.literal_eval(f.read())