some stuff you can do in R, for comparison against python