Add Python and R scripts for generating answers for output tests