Python and R code for coursera classes