use literal_eval instead of eval