code to analyze RT data using both R and python