replacing float() with literal_eval()