Changed eval() to ast.literal_eval()