Use safer ast literal eval