refractor caltech format conversion scripts: use dictionary to replace list to return resulst